Skip to content

Implement derive(CELSchema) macro for generating cel validation on CRDs #3615

Implement derive(CELSchema) macro for generating cel validation on CRDs

Implement derive(CELSchema) macro for generating cel validation on CRDs #3615

Triggered via pull request December 21, 2024 10:51
Status Success
Total duration 58s
Artifacts

clippy.yml

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

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