Workspacify deps #3072
clippy
11 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 11 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0-nightly (0ad927c0c 2024-03-21)
- cargo 1.79.0-nightly (d438c80c4 2024-03-19)
- clippy 0.1.78 (0ad927c 2024-03-21)
Annotations
Check warning on line 5 in kube-runtime/src/reflector/object_ref.rs
github-actions / clippy
unused import: `ObjectMeta`
warning: unused import: `ObjectMeta`
--> kube-runtime/src/reflector/object_ref.rs:5:44
|
5 | core::{api_version_from_group_version, ObjectMeta},
| ^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Check warning on line 250 in kube-runtime/src/events.rs
github-actions / clippy
item has both inner and outer attributes
warning: item has both inner and outer attributes
--> kube-runtime/src/events.rs:248:1
|
248 | / #[cfg(test)]
249 | | mod test {
250 | | #![allow(unused_imports)]
| |_____________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
= note: `#[warn(clippy::mixed_attributes_style)]` on by default
Check warning on line 230 in kube-client/src/api/entry.rs
github-actions / clippy
assigning the result of `Clone::clone()` may be inefficient
warning: assigning the result of `Clone::clone()` may be inefficient
--> kube-client/src/api/entry.rs:230:26
|
230 | ns @ None => *ns = self.api.namespace.clone(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `ns.clone_from(&self.api.namespace)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
= note: `#[warn(clippy::assigning_clones)]` on by default
Check warning on line 413 in kube-client/src/client/auth/mod.rs
github-actions / clippy
use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
warning: use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
--> kube-client/src/client/auth/mod.rs:413:39
|
413 | if Utc::now() + Duration::seconds(60) < expiry_date {
| ^^^^^^^
Check warning on line 156 in kube-client/src/client/auth/mod.rs
github-actions / clippy
use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
warning: use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
--> kube-client/src/client/auth/mod.rs:156:54
|
156 | self.expires_at = Utc::now() + Duration::seconds(60);
| ^^^^^^^
Check warning on line 138 in kube-client/src/client/auth/mod.rs
github-actions / clippy
use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
warning: use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
--> kube-client/src/client/auth/mod.rs:138:32
|
138 | Utc::now() + Duration::seconds(10) > self.expires_at
| ^^^^^^^
Check warning on line 133 in kube-client/src/client/auth/mod.rs
github-actions / clippy
use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
warning: use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
--> kube-client/src/client/auth/mod.rs:133:48
|
133 | expires_at: Utc::now() + Duration::seconds(60),
| ^^^^^^^
Check warning on line 169 in kube-client/src/client/auth/oidc.rs
github-actions / clippy
use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
warning: use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
--> kube-client/src/client/auth/oidc.rs:169:44
|
169 | let valid = Utc::now() + Duration::seconds(Self::EXPIRY_DELTA_SECONDS) < timestamp;
| ^^^^^^^
Check warning on line 208 in kube-client/src/client/auth/mod.rs
github-actions / clippy
use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
warning: use of deprecated associated function `chrono::TimeDelta::seconds`: Use `TimeDelta::try_seconds` instead
--> kube-client/src/client/auth/mod.rs:208:43
|
208 | if Utc::now() + Duration::seconds(60) >= locked_data.1 {
| ^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
Check warning on line 12 in kube-client/src/client/mod.rs
github-actions / clippy
unused import: `StatusCode`
warning: unused import: `StatusCode`
--> kube-client/src/client/mod.rs:12:37
|
12 | use http::{self, Request, Response, StatusCode};
| ^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Check warning on line 133 in kube-client/src/lib.rs
github-actions / clippy
item has both inner and outer attributes
warning: item has both inner and outer attributes
--> kube-client/src/lib.rs:130:1
|
130 | / #[cfg(all(feature = "client", feature = "config"))]
131 | | #[cfg(test)]
132 | | mod test {
133 | | #![allow(unused_imports)]
| |_____________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
= note: `#[warn(clippy::mixed_attributes_style)]` on by default