mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +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\
|
"type UtilityMap<T> = HashMap<&'static str, (fn(T) -> i32, fn() -> App<'static, 'static>)>;\n\
|
||||||
\n\
|
\n\
|
||||||
fn util_map<T: uucore::Args>() -> UtilityMap<T> {\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\
|
\tlet mut map = UtilityMap::new();\n\
|
||||||
"
|
"
|
||||||
.as_bytes(),
|
.as_bytes(),
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#![allow(unused_imports)]
|
||||||
mod common;
|
mod common;
|
||||||
|
|
||||||
use common::util::TestScenario;
|
use common::util::TestScenario;
|
||||||
|
@ -25,6 +26,7 @@ fn execution_phrase_double() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "ls")]
|
#[cfg(feature = "ls")]
|
||||||
|
#[cfg(any(unix, windows))]
|
||||||
fn execution_phrase_single() {
|
fn execution_phrase_single() {
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
|
@ -63,6 +65,7 @@ fn util_name_double() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "sort")]
|
#[cfg(feature = "sort")]
|
||||||
|
#[cfg(any(unix, windows))]
|
||||||
fn util_name_single() {
|
fn util_name_single() {
|
||||||
use std::{
|
use std::{
|
||||||
io::Write,
|
io::Write,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue