mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 21:47:36 +00:00
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 `:` ```
This commit is contained in:
commit
d783f399e5
@ -223,7 +223,7 @@ where
|
|||||||
|
|
||||||
impl fmt::Display for JoinPathsError {
|
impl fmt::Display for JoinPathsError {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
write!(f, "path segment contains separator `{}`", PATH_SEPARATOR)
|
write!(f, "path segment contains separator `{}`", char::from(PATH_SEPARATOR))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user