Skip to content

Commit f61662a

Browse files
committed
Better fix for rust nightly
1 parent a117964 commit f61662a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,10 +1125,10 @@ mod test {
11251125
}
11261126
let etext = parse_utf(b"a\x80\x80", "/etc").unwrap_err().to_string();
11271127
assert!(etext.starts_with(
1128-
"Path error at \"/etc\": invalid utf-8: invalid "));
1128+
"Path error at \"/etc\": invalid utf-8"));
11291129
let etext = parse_utf(b"\x80\x80", PathBuf::from("/tmp")).unwrap_err()
11301130
.to_string();
11311131
assert!(etext.starts_with(
1132-
"Path error at \"/tmp\": invalid utf-8: invalid "));
1132+
"Path error at \"/tmp\": invalid utf-8"));
11331133
}
11341134
}

0 commit comments

Comments
 (0)