Skip to content

Commit 73cf76e

Browse files
committed
fix: Fixed new clippy lints introduced in Rust 1.88
1 parent d6b3991 commit 73cf76e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/axum.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ async fn main() {
4040

4141
let intervals = root_intervals.zip(create_user_intervals);
4242
for (root_route, (create_user_route, create_user_insert)) in intervals {
43-
println!("root_route = {:#?}", root_route);
44-
println!("create_user_route = {:#?}", create_user_route);
45-
println!("create_user_insert = {:#?}", create_user_insert);
43+
println!("root_route = {root_route:#?}");
44+
println!("create_user_route = {create_user_route:#?}");
45+
println!("create_user_insert = {create_user_insert:#?}");
4646
tokio::time::sleep(metrics_frequency).await;
4747
}
4848
});

examples/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
1111
tokio::spawn(async move {
1212
for interval in runtime_monitor.intervals() {
1313
// pretty-print the metric interval
14-
println!("{:?}", interval);
14+
println!("{interval:?}");
1515
// wait 500ms
1616
tokio::time::sleep(Duration::from_millis(500)).await;
1717
}

examples/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
1212
tokio::spawn(async move {
1313
for deltas in metrics_monitor.intervals() {
1414
// pretty-print the metric deltas
15-
println!("{:?}", deltas);
15+
println!("{deltas:?}");
1616
// wait 500ms
1717
tokio::time::sleep(Duration::from_millis(500)).await;
1818
}

examples/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
1010
tokio::spawn(async move {
1111
for deltas in metrics_monitor.intervals() {
1212
// pretty-print the metric deltas
13-
println!("{:?}", deltas);
13+
println!("{deltas:?}");
1414
// wait 500ms
1515
tokio::time::sleep(Duration::from_millis(500)).await;
1616
}

0 commit comments

Comments
 (0)