Open drennvinn opened 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,)>) ...
pub async fn get(_path: Path<(String,)>) ...
https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#unused-variables
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