Skip to content

Commit eb91920

Browse files
...renaming demo* files/folders
1 parent 114603a commit eb91920

File tree

8 files changed

+2
-2
lines changed

8 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl<const N: usize> NonDeDuplicatedCStr<N> {
183183
/// **not** include the trailing NUL byte - that is added automatically.
184184
pub const fn new_from_str(s: &str) -> Self {
185185
let mut arr = [0u8; N];
186-
if let Some((_, sub_slice)) = (&mut arr).split_last_mut() {
186+
if let Some((_, sub_slice)) = arr.split_last_mut() {
187187
crate::copy_bytes_to_array(sub_slice, s.as_bytes(), s.len());
188188
} else {
189189
unreachable!()

0 commit comments

Comments
 (0)