Skip to content

Commit 3794751

Browse files
CAD97dtolnay
andauthored
style nits
Co-authored-by: David Tolnay <[email protected]>
1 parent a8df928 commit 3794751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/alloc/src/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ impl String {
751751
return Err(FromUtf16Error(()));
752752
}
753753
match (cfg!(target_endian = "little"), unsafe { v.align_to::<u16>() }) {
754-
(true, (&[], v, &[])) => Self::from_utf16(v),
754+
(true, ([], v, [])) => Self::from_utf16(v),
755755
_ => decode_utf16(v.array_chunks::<2>().copied().map(u16::from_le_bytes))
756756
.collect::<Result<_, _>>()
757757
.map_err(|_| FromUtf16Error(())),

0 commit comments

Comments
 (0)