mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-30 06:53:27 +00:00
12 lines
367 B
Text
12 lines
367 B
Text
|
error: useless use of `vec!`
|
||
|
--> tests/ui-toml/useless_vec/useless_vec.rs:8:9
|
||
|
|
|
||
|
LL | foo(&vec![1_u32]);
|
||
|
| ^^^^^^^^^^^^ help: you can use a slice directly: `&[1_u32]`
|
||
|
|
|
||
|
= note: `-D clippy::useless-vec` implied by `-D warnings`
|
||
|
= help: to override `-D warnings` add `#[allow(clippy::useless_vec)]`
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|