Skip to content

feat: Add typed scale argument to derive macro #3580

feat: Add typed scale argument to derive macro

feat: Add typed scale argument to derive macro #3580

Triggered via pull request December 2, 2024 15:54
Status Success
Total duration 1m 13s
Artifacts

clippy.yml

on: pull_request
clippy_nightly
55s
clippy_nightly
Fit to window
Zoom out
Zoom in

Annotations

2 warnings
redundant closure: kube-derive/src/custom_resource.rs#L210
warning: redundant closure --> kube-derive/src/custom_resource.rs:210:57 | 210 | let scale = serde_json::from_str(value).map_err(|err| darling::Error::custom(err))?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `darling::Error::custom` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `#[warn(clippy::redundant_closure)]` on by default
redundant closure: kube-derive/src/custom_resource.rs#L210
warning: redundant closure --> kube-derive/src/custom_resource.rs:210:57 | 210 | let scale = serde_json::from_str(value).map_err(|err| darling::Error::custom(err))?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `darling::Error::custom` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `#[warn(clippy::redundant_closure)]` on by default