1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 20:47:46 +00:00

lint: fix clippy::useless_vec in unit_tests.rs

This commit is contained in:
Krysztal112233 2024-03-21 23:46:24 +08:00
parent 21d6eab847
commit 63d92cdbda
No known key found for this signature in database
GPG key ID: 331615739A596A02

View file

@ -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();