feat: Add typed scale argument to derive macro #3580
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
|