Skip to content

Commit 157e993

Browse files
committed
Trim the end of the target type string
To be on the safe side. Also, it looks tidier because it matches the code block following. Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 5ece31c commit 157e993

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/dm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ impl DM {
570570
let target_type = unsafe {
571571
let cast: &[u8; 16] = &*(&targ.target_type as *const [u8; 16]);
572572
let slc = slice_to_null(cast).expect("assume all parsing succeeds");
573-
String::from_utf8_lossy(slc).into_owned()
573+
String::from_utf8_lossy(slc).trim_end().to_owned()
574574
};
575575

576576
let params = {

0 commit comments

Comments
 (0)