about summary refs log tree commit diff
path: root/src/libstd/sys_common
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/sys_common
parent8ff4b42064b374bb62043f7729f84b6d979c7667 (diff)
downloadrust-e333725664c45874262ecb11e511c17cfd4672f0.tar.gz
rust-e333725664c45874262ecb11e511c17cfd4672f0.zip
use fmt::Result where applicable
Diffstat (limited to 'src/libstd/sys_common')
-rw-r--r--src/libstd/sys_common/wtf8.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys_common/wtf8.rs b/src/libstd/sys_common/wtf8.rs
index fe7e058091e..14a2555adf9 100644
--- a/src/libstd/sys_common/wtf8.rs
+++ b/src/libstd/sys_common/wtf8.rs
@@ -56,7 +56,7 @@ pub struct CodePoint {
 /// Example: `U+1F4A9`
 impl fmt::Debug for CodePoint {
     #[inline]
-    fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> {
+    fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
         write!(formatter, "U+{:04X}", self.value)
     }
 }
@@ -144,7 +144,7 @@ impl ops::DerefMut for Wtf8Buf {
 /// Example: `"a\u{D800}"` for a string with code points [U+0061, U+D800]
 impl fmt::Debug for Wtf8Buf {
     #[inline]
-    fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> {
+    fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
         fmt::Debug::fmt(&**self, formatter)
     }
 }