mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 13:07:46 +00:00
lint: fix clippy::useless_vec
in unit_tests.rs
This commit is contained in:
parent
21d6eab847
commit
63d92cdbda
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ use crate::parseargs::Parser;
|
|||
use crate::StatusLevel;
|
||||
|
||||
#[cfg(not(any(target_os = "linux", target_os = "android")))]
|
||||
#[allow(clippy::useless_vec)]
|
||||
#[test]
|
||||
fn unimplemented_flags_should_error_non_linux() {
|
||||
let mut succeeded = Vec::new();
|
||||
|
@ -55,6 +56,7 @@ fn unimplemented_flags_should_error_non_linux() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::useless_vec)]
|
||||
fn unimplemented_flags_should_error() {
|
||||
let mut succeeded = Vec::new();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue