mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Merge pull request #2694 from jhscheer/clippy_warnings
tests: silence clippy warnings for unused_imports
This commit is contained in:
commit
1b39a10938
2 changed files with 5 additions and 0 deletions
2
build.rs
2
build.rs
|
@ -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(),
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue