about summary refs log tree commit diff
path: root/src/libstd/path.rs
diff options
context:
space:
mode:
authorAndre Bogus <bogusandre@gmail.com>2018-05-09 01:41:44 +0200
committerAndre Bogus <bogusandre@gmail.com>2018-05-09 02:01:37 +0200
commite333725664c45874262ecb11e511c17cfd4672f0 (patch)
treeb5f01abb2bc85e81b5b6f16c8ec4b4eb2962e2f6 /src/libstd/path.rs
parent8ff4b42064b374bb62043f7729f84b6d979c7667 (diff)
downloadrust-e333725664c45874262ecb11e511c17cfd4672f0.tar.gz
rust-e333725664c45874262ecb11e511c17cfd4672f0.zip
use fmt::Result where applicable
Diffstat (limited to 'src/libstd/path.rs')
-rw-r--r--src/libstd/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 696711a70d4..5d35a786173 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -1460,7 +1460,7 @@ impl<P: AsRef<Path>> iter::Extend<P> for PathBuf {
 
 #[stable(feature = "rust1", since = "1.0.0")]
 impl fmt::Debug for PathBuf {
-    fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> {
+    fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
         fmt::Debug::fmt(&**self, formatter)
     }
 }