Skip to content

Commit 01c25b6

Browse files
committed
clippy fixes for test files
1 parent 1d34653 commit 01c25b6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/by-util/test_fold.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,9 @@ fn test_combining_characters_nfc() {
606606
let e_acute_nfc = "\u{00E9}"; // é as single character
607607
new_ucmd!()
608608
.arg("-w2")
609-
.pipe_in(format!("{}{}{}", e_acute_nfc, e_acute_nfc, e_acute_nfc))
609+
.pipe_in(format!("{e_acute_nfc}{e_acute_nfc}{e_acute_nfc}"))
610610
.succeeds()
611-
.stdout_is(format!("{}{}\n{}", e_acute_nfc, e_acute_nfc, e_acute_nfc));
611+
.stdout_is(format!("{e_acute_nfc}{e_acute_nfc}\n{e_acute_nfc}"));
612612
}
613613

614614
#[test]
@@ -617,9 +617,9 @@ fn test_combining_characters_nfd() {
617617
let e_acute_nfd = "e\u{0301}"; // e + combining acute accent
618618
new_ucmd!()
619619
.arg("-w2")
620-
.pipe_in(format!("{}{}{}", e_acute_nfd, e_acute_nfd, e_acute_nfd))
620+
.pipe_in(format!("{e_acute_nfd}{e_acute_nfd}{e_acute_nfd}"))
621621
.succeeds()
622-
.stdout_is(format!("{}{}\n{}", e_acute_nfd, e_acute_nfd, e_acute_nfd));
622+
.stdout_is(format!("{e_acute_nfd}{e_acute_nfd}\n{e_acute_nfd}"));
623623
}
624624

625625
#[test]
@@ -628,7 +628,7 @@ fn test_fullwidth_characters() {
628628
let e_fullwidth = "\u{FF45}"; // e
629629
new_ucmd!()
630630
.arg("-w2")
631-
.pipe_in(format!("{}{}", e_fullwidth, e_fullwidth))
631+
.pipe_in(format!("{e_fullwidth}{e_fullwidth}"))
632632
.succeeds()
633-
.stdout_is(format!("{}\n{}", e_fullwidth, e_fullwidth));
633+
.stdout_is(format!("{e_fullwidth}\n{e_fullwidth}"));
634634
}

0 commit comments

Comments
 (0)