Implement derive(CELSchema)
macro for generating cel validation on CRDs
#3615
Annotations
3 warnings
clippy_nightly
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
writing `&Vec` instead of `&[_]` involves a new object where a slice will do:
kube-derive/src/cel_schema.rs#L153
warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
--> kube-derive/src/cel_schema.rs:153:29
|
153 | fn remove_attributes(attrs: &Vec<Attribute>, witelist: Vec<&str>) -> Vec<Attribute> {
| ^^^^^^^^^^^^^^^ help: change this to: `&[Attribute]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
= note: `#[warn(clippy::ptr_arg)]` on by default
|
writing `&Vec` instead of `&[_]` involves a new object where a slice will do:
kube-derive/src/cel_schema.rs#L153
warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
--> kube-derive/src/cel_schema.rs:153:29
|
153 | fn remove_attributes(attrs: &Vec<Attribute>, witelist: Vec<&str>) -> Vec<Attribute> {
| ^^^^^^^^^^^^^^^ help: change this to: `&[Attribute]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
= note: `#[warn(clippy::ptr_arg)]` on by default
|