Added missing recursive clone #3
GitHub Actions / clippy
succeeded
Mar 2, 2024 in 1s
clippy
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0 (07dca489a 2024-02-04)
- cargo 1.76.0 (c84b36747 2024-01-18)
- clippy 0.1.76 (07dca48 2024-02-04)
Annotations
Check warning on line 58 in src/timezones.rs
github-actions / clippy
accessing first element with `list.get(0)`
warning: accessing first element with `list.get(0)`
--> src/timezones.rs:58:9
|
58 | list.get(0).copied()
| ^^^^^^^^^^^ help: try: `list.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
Check warning on line 112 in src/zoned.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'b
warning: the following explicit lifetimes could be elided: 'b
--> src/zoned.rs:112:29
|
112 | pub fn replace_timezone<'b, T1: TimeZone>(self, timezone: &'b T1) -> ZonedDateTime<'b, T1> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
112 - pub fn replace_timezone<'b, T1: TimeZone>(self, timezone: &'b T1) -> ZonedDateTime<'b, T1> {
112 + pub fn replace_timezone<T1: TimeZone>(self, timezone: &T1) -> ZonedDateTime<'_, T1> {
|
Loading