fix(deps): update rust crate chrono to 0.4.29 #689
GitHub Actions / clippy
succeeded
Sep 5, 2023 in 0s
clippy
4 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 4 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.0 (5680fa18f 2023-08-23)
- cargo 1.72.0 (103a7ff2e 2023-08-15)
- clippy 0.1.72 (5680fa1 2023-08-23)
Annotations
Check warning on line 13 in src/server.rs
github-actions / clippy
useless conversion to the same type: `std::net::TcpListener`
warning: useless conversion to the same type: `std::net::TcpListener`
--> src/server.rs:13:47
|
13 | tokio::net::TcpListener::from_std(listener.into()).unwrap(),
| ^^^^^^^^^^^^^^^ help: consider removing `.into()`: `listener`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
Check warning on line 55 in src/routes/posts.rs
github-actions / clippy
the borrowed expression implements the required traits
warning: the borrowed expression implements the required traits
--> src/routes/posts.rs:52:36
|
52 | res.render(Redirect::other(&format!(
| ____________________________________^
53 | | "/posts/{}/{}",
54 | | normalized_slug, attachment_name
55 | | )));
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
help: change this to
|
52 ~ res.render(Redirect::other(format!(
53 + "/posts/{}/{}",
54 + normalized_slug, attachment_name
55 ~ )));
|
Check warning on line 26 in src/routes/posts.rs
github-actions / clippy
the borrowed expression implements the required traits
warning: the borrowed expression implements the required traits
--> src/routes/posts.rs:26:40
|
26 | res.render(Redirect::permanent(&format!("/posts/{}/", normalized_slug)));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("/posts/{}/", normalized_slug)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check warning on line 137 in src/blog.rs
github-actions / clippy
the borrowed expression implements the required traits
warning: the borrowed expression implements the required traits
--> src/blog.rs:137:48
|
137 | let conf_contents = fs::read_to_string(&conf_path)?;
| ^^^^^^^^^^ help: change this to: `conf_path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
Loading