Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Jul 25, 2024
1 parent 5bc88d7 commit 36f9a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hello-world/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async fn main() -> Result<()> {
let mut app = Router::new().get("/", |_| async { Ok("Hello, World!") });

for n in 0..1000 {
app = app.get(&format!("/{}", n), index);
app = app.get(format!("/{}", n), index);
}

if let Err(e) = serve(listener, app).await {
Expand Down

0 comments on commit 36f9a4e

Please sign in to comment.