Skip to content

chore: common .github files #51

chore: common .github files

chore: common .github files #51

GitHub Actions / clippy succeeded Jan 23, 2024 in 1s

clippy

2 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 2
Note 0
Help 0

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 28 in src/strucvars/eval/dup/result.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do

warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
  --> src/strucvars/eval/dup/result.rs:28:36
   |
28 |     pub fn with_sections(sections: &Vec<Section>) -> Self {
   |                                    ^^^^^^^^^^^^^ help: change this to: `&[Section]`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg

Check warning on line 28 in src/strucvars/eval/del/result.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do

warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
  --> src/strucvars/eval/del/result.rs:28:36
   |
28 |     pub fn with_sections(sections: &Vec<Section>) -> Self {
   |                                    ^^^^^^^^^^^^^ help: change this to: `&[Section]`
   |
   = 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