1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

Merge pull request #2694 from jhscheer/clippy_warnings

tests: silence clippy warnings for unused_imports
This commit is contained in:
Sylvestre Ledru 2021-10-24 19:09:09 +02:00 committed by GitHub
commit 1b39a10938
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -46,6 +46,8 @@ pub fn main() {
"type UtilityMap<T> = HashMap<&'static str, (fn(T) -> i32, fn() -> App<'static, 'static>)>;\n\
\n\
fn util_map<T: uucore::Args>() -> UtilityMap<T> {\n\
\t#[allow(unused_mut)]\n\
\t#[allow(clippy::let_and_return)]\n\
\tlet mut map = UtilityMap::new();\n\
"
.as_bytes(),

View file

@ -1,3 +1,4 @@
#![allow(unused_imports)]
mod common;
use common::util::TestScenario;
@ -25,6 +26,7 @@ fn execution_phrase_double() {
#[test]
#[cfg(feature = "ls")]
#[cfg(any(unix, windows))]
fn execution_phrase_single() {
use std::process::Command;
@ -63,6 +65,7 @@ fn util_name_double() {
#[test]
#[cfg(feature = "sort")]
#[cfg(any(unix, windows))]
fn util_name_single() {
use std::{
io::Write,