Skip to content

Commit d783f39

Browse files
authored
Rollup merge of #84177 - ehuss:join_paths-err, r=kennytm
Fix join_paths error display. On unix, the error from `join_paths` looked like this: ``` path segment contains separator `58` ``` This PR changes it to look like this: ``` path segment contains separator `:` ```
2 parents 80ee7cb + a8fbe2f commit d783f39

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)