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:
Dylan DPC 2021-04-15 01:27:53 +02:00 committed by GitHub
commit d783f399e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,7 +223,7 @@ where
impl fmt::Display for JoinPathsError {
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))
}
}