mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 03:26:18 +00:00
lint: fix clippy::suspicious_open_options
of project.
This commit is contained in:
parent
ef8c379370
commit
d21dc125d0
4 changed files with 5 additions and 2 deletions
|
@ -445,6 +445,7 @@ macro_rules! compare_with_gnu {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::cognitive_complexity)] // Ignore clippy lint of too long function sign
|
||||
fn test_env_with_gnu_reference_parsing_errors() {
|
||||
let ts = TestScenario::new(util_name!());
|
||||
|
||||
|
|
|
@ -208,6 +208,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::cognitive_complexity)] // Ignore clippy lint of too long function sign
|
||||
fn test_random_string_generate_with_delimiter_should_end_with_delimiter() {
|
||||
let random_string = RandomString::generate_with_delimiter(Alphanumeric, 0, 1, true, 1);
|
||||
assert_eq!(1, random_string.len());
|
||||
|
@ -251,6 +252,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::cognitive_complexity)] // Ignore clippy lint of too long function sign
|
||||
fn test_random_string_generate_with_delimiter_should_not_end_with_delimiter() {
|
||||
let random_string = RandomString::generate_with_delimiter(Alphanumeric, 0, 0, false, 1);
|
||||
assert_eq!(1, random_string.len());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue