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

refactor/polish ~ fix cargo clippy complaints (redundant_static_lifetimes)

This commit is contained in:
Roy Ivy III 2020-02-06 22:40:45 -06:00
parent c4a69f2f4e
commit 75f05df119
4 changed files with 10 additions and 11 deletions

View file

@ -18,18 +18,17 @@ use std::thread::sleep;
use std::time::Duration;
#[cfg(windows)]
static PROGNAME: &'static str = "uutils.exe";
static PROGNAME: &str = "uutils.exe";
#[cfg(not(windows))]
static PROGNAME: &'static str = "uutils";
static PROGNAME: &str = "uutils";
static TESTS_DIR: &'static str = "tests";
static FIXTURES_DIR: &'static str = "fixtures";
static TESTS_DIR: &str = "tests";
static FIXTURES_DIR: &str = "fixtures";
static ALREADY_RUN: &'static str =
" you have already run this UCommand, if you want to run \
static ALREADY_RUN: &str = " you have already run this UCommand, if you want to run \
another command in the same test, use TestScenario::new instead of \
testing();";
static MULTIPLE_STDIN_MEANINGLESS: &'static str = "Ucommand is designed around a typical use case of: provide args and input stream -> spawn process -> block until completion -> return output streams. For verifying that a particular section of the input stream is what causes a particular behavior, use the Command type directly.";
static MULTIPLE_STDIN_MEANINGLESS: &str = "Ucommand is designed around a typical use case of: provide args and input stream -> spawn process -> block until completion -> return output streams. For verifying that a particular section of the input stream is what causes a particular behavior, use the Command type directly.";
/// Test if the program is running under WSL
// ref: <https://github.com/microsoft/WSL/issues/4555> @@ <https://archive.is/dP0bz>