Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve useless_vec clippy lint in benchmark runner
error: useless use of `vec!` --> benches/rust.rs:120:13 | 120 | / vec![ 121 | | $( 122 | | $(#[$cfg])* 123 | | (stringify!($name), $name::bench as fn(&str) -> Result<(), ()>), 124 | | )* 125 | | ] | |_____________^ help: you can use a slice directly: `&[(stringify!($name), $name::bench as fn(&str) -> Result<(), ()>)]` ... 141 | for (name, f) in testcases!( | ______________________- 142 | | #[cfg(not(syn_only))] 143 | | read_from_disk, 144 | | #[cfg(not(syn_only))] ... | 148 | | librustc_parse, 149 | | ) { | |_____- in this macro invocation | = note: `-D clippy::useless-vec` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec = note: this error originates in the macro `testcases` (in Nightly builds, run with -Z macro-backtrace for more info)
- Loading branch information