Skip to content

Commit b8d552c

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 162a65b commit b8d552c

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)