Skip to content

Commit 05b6657

Browse files
committed
Fix join_paths error display.
1 parent c9be90a commit 05b6657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sys/unix/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ where
223223

224224
impl fmt::Display for JoinPathsError {
225225
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
226-
write!(f, "path segment contains separator `{}`", PATH_SEPARATOR)
226+
write!(f, "path segment contains separator `{}`", char::from(PATH_SEPARATOR))
227227
}
228228
}
229229

0 commit comments

Comments
 (0)