Skip to content

Commit d901225

Browse files
committed
Fix for clippy warning in tests
1 parent 184adc7 commit d901225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ mod tests {
10271027
let s: String<4> = String::try_from("ab").unwrap();
10281028
let b: Vec<u8, 4> = s.into_bytes();
10291029
assert_eq!(b.len(), 2);
1030-
assert_eq!(&[b'a', b'b'], &b[..]);
1030+
assert_eq!(b"ab", &b[..]);
10311031
}
10321032

10331033
#[test]

0 commit comments

Comments
 (0)