Skip to content

Commit a8fbe2f

Browse files
committed
Fix join_paths error display.
1 parent 132b4e5 commit a8fbe2f

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/unix

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/os.rs

+1-1
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)