Skip to content

Commit c31cccd

Browse files
authored
Merge pull request #435 from mulkieran/master-parse-table
Trim the end of the target type string
2 parents 5ece31c + 157e993 commit c31cccd

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)