Skip to content

Commit

Permalink
Merge pull request #936 from bgurney-rh/clippy-1.81
Browse files Browse the repository at this point in the history
dm.rs: Fix byte_char_slices lint
  • Loading branch information
mulkieran authored Sep 5, 2024
2 parents 099aea8 + 6e09f98 commit 8b262df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/dm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ impl DM {
),
};

let data_in = [id_in, &[b'\0']].concat();
let data_in = [id_in, b"\0"].concat();

let mut hdr = options.to_ioctl_hdr(None, DmFlags::DM_UUID)?;
Self::hdr_set_name(&mut hdr, old_name)?;
Expand Down

0 comments on commit 8b262df

Please sign in to comment.