evoxmusic / twitter-clone-rust

Twitter clone in Rust
https://docs.qovery.com/guides/tutorial/create-a-blazingly-fast-api-in-rust/
130 stars 40 forks source link

warning: unused variable: `path` #4

Open drennvinn opened 2 years ago

drennvinn commented 2 years ago

This warning is caused by the path params in tweet.rs and like.rs. you may avoid it by adding _ prefix to each params. pub async fn get(_path: Path<(String,)>) ...

https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#unused-variables