about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2021-04-13 14:20:49 -0700
committerEric Huss <eric@huss.org>2021-04-13 14:20:49 -0700
commita8fbe2f22f78a97f455808284d6893cee1ed6b35 (patch)
treef9342bbddf235d1492aeef1fd779dc58388890ce
parent132b4e5d167b7e622fcc11fa2b67b931105b4de1 (diff)
downloadrust-a8fbe2f22f78a97f455808284d6893cee1ed6b35.tar.gz
rust-a8fbe2f22f78a97f455808284d6893cee1ed6b35.zip
Fix join_paths error display.
-rw-r--r--library/std/src/sys/unix/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/os.rs b/library/std/src/sys/unix/os.rs
index 4a077e2151e..ce2c4e88c7e 100644
--- a/library/std/src/sys/unix/os.rs
+++ b/library/std/src/sys/unix/os.rs
@@ -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))
     }
 }