Skip to content

experiment with a Store<K> parameter for Reflectors - #102 #1290

experiment with a Store<K> parameter for Reflectors - #102

experiment with a Store<K> parameter for Reflectors - #102 #1290

Triggered via push September 16, 2024 21:55
Status Success
Total duration 23s
Artifacts

rustfmt.yml

on: push
rustfmt_nightly
13s
rustfmt_nightly
Fit to window
Zoom out
Zoom in

Annotations

1 error and 12 warnings
mismatched types: kube/src/runtime/reflector.rs#L48
error[E0308]: mismatched types --> kube/src/runtime/reflector.rs:48:9 | 41 | impl<K, S> GenericReflector<K, S> | - expected this type parameter ... 47 | pub fn new(api: Api<K>) -> Self { | ---- expected `runtime::reflector::GenericReflector<K, S>` because of return type 48 | / Reflector { 49 | | api, 50 | | params: ListParams::default(), 51 | | version: Arc::new(Mutex::new(0.to_string())), 52 | | store: Default::default(), 53 | | } | |_________^ expected `GenericReflector<K, S>`, found `GenericReflector<K, ...>` | = note: expected struct `runtime::reflector::GenericReflector<_, S>` found struct `runtime::reflector::GenericReflector<_, std::collections::BTreeMap<runtime::reflector::ObjectId, K>>`
rustfmt_nightly
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
rustfmt_nightly
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
rustfmt_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rustfmt_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rustfmt_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rustfmt_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
use of deprecated method `openssl::pkcs12::Pkcs12Builder::build`: Use Self::{name, pkey, cert, build2} instead.: kube/src/config/file_loader.rs#L109
warning: use of deprecated method `openssl::pkcs12::Pkcs12Builder::build`: Use Self::{name, pkey, cert, build2} instead. --> kube/src/config/file_loader.rs:109:37 | 109 | let p12 = Pkcs12::builder().build(password, "kubeconfig", &pkey, &x509)?; | ^^^^^ | = note: `#[warn(deprecated)]` on by default
unused variable: `sigterm`: kube/src/runtime/reflector.rs#L83
warning: unused variable: `sigterm` --> kube/src/runtime/reflector.rs:83:17 | 83 | sigterm = sigterm_fut => { | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sigterm`
unused variable: `ctrlc`: kube/src/runtime/reflector.rs#L79
warning: unused variable: `ctrlc` --> kube/src/runtime/reflector.rs:79:17 | 79 | ctrlc = ctrlc_fut => { | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ctrlc` | = note: `#[warn(unused_variables)]` on by default
bound is defined in more than one place: kube/src/client/mod.rs#L155
warning: bound is defined in more than one place --> kube/src/client/mod.rs:155:33 | 155 | pub async fn request_events<T: Clone + Meta>( | ^ ... 160 | T: DeserializeOwned, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: `#[warn(clippy::multiple_bound_locations)]` on by default
elided lifetime has a name: kube/src/api/object.rs#L171
warning: elided lifetime has a name --> kube/src/api/object.rs:171:63 | 171 | pub fn iter_mut<'a>(&'a mut self) -> impl Iterator<Item = &mut T> + 'a { | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a`
elided lifetime has a name: kube/src/api/object.rs#L148
warning: elided lifetime has a name --> kube/src/api/object.rs:148:55 | 148 | pub fn iter<'a>(&'a self) -> impl Iterator<Item = &T> + 'a { | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` | = note: `#[warn(elided_named_lifetimes)]` on by default