touchup some clippy warnings in tests (#6612)

This commit is contained in:
JT
2022-09-26 09:06:13 +13:00
committed by GitHub
parent b47bd22b37
commit 43905caa46
5 changed files with 9 additions and 9 deletions

View File

@ -289,7 +289,7 @@ proptest! {
}
#[test]
fn to_nuon_from_nuon_string(s: String) {
if s != "\\0" && s!= "" && !s.contains('\\') && !s.contains('"'){
if s != "\\0" && !s.is_empty() && !s.contains('\\') && !s.contains('"'){
let actual = nu!(
cwd: "tests/fixtures/formats", pipeline(
format!(r#"