2583 |
2583 |
write!(w, "")?; |
2584 |
2584 |
// If there's already another implementor that has the same abbridged name, use the |
2585 |
2585 |
// full path, for example in `std::iter::ExactSizeIterator` |
@@ -2612,7 +2612,7 @@ fn render_implementor(cx: &Context, implementor: &Impl, w: &mut fmt::Formatter, |
|
|
2612 |
2612 |
|
2613 |
2613 |
fn render_impls(cx: &Context, w: &mut fmt::Formatter, |
2614 |
2614 |
traits: &[&&Impl], |
2615 |
|
-containing_item: &clean::Item) -> Result<(), fmt::Error> { |
|
2615 |
+containing_item: &clean::Item) -> fmt::Result { |
2616 |
2616 |
for i in traits { |
2617 |
2617 |
let did = i.trait_did().unwrap(); |
2618 |
2618 |
let assoc_link = AssocItemLink::GotoSource(did, &i.inner_impl().provided_trait_methods); |
Original file line number |
Diff line number |
Diff line change |
@@ -1460,7 +1460,7 @@ impl> iter::Extend for PathBuf { |
|
|
1460 |
1460 |
|
1461 |
1461 |
#[stable(feature = "rust1", since = "1.0.0")] |
1462 |
1462 |
impl fmt::Debug for PathBuf { |
1463 |
|
-fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> { |
|
1463 |
+fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { |
1464 |
1464 |
fmt::Debug::fmt(&**self, formatter) |
1465 |
1465 |
} |
1466 |
1466 |
} |
Original file line number |
Diff line number |
Diff line change |
@@ -48,13 +48,13 @@ impl Error { |
|
|
48 |
48 |
} |
49 |
49 |
|
50 |
50 |
impl fmt::Debug for Error { |
51 |
|
-fn fmt(&self, f: &mut fmt::Formatter) -> result::Result<(), fmt::Error> { |
|
51 |
+fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
52 |
52 |
f.write_str(self.text()) |
53 |
53 |
} |
54 |
54 |
} |
55 |
55 |
|
56 |
56 |
impl fmt::Display for Error { |
57 |
|
-fn fmt(&self, f: &mut fmt::Formatter) -> result::Result<(), fmt::Error> { |
|
57 |
+fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
58 |
58 |
f.write_str(self.text()) |
59 |
59 |
} |
60 |
60 |
} |
Original file line number |
Diff line number |
Diff line change |
@@ -56,7 +56,7 @@ pub struct CodePoint { |
|
|
56 |
56 |
/// Example: `U+1F4A9` |
57 |
57 |
impl fmt::Debug for CodePoint { |
58 |
58 |
#[inline] |
59 |
|
-fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> { |
|
59 |
+fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { |
60 |
60 |
write!(formatter, "U+{:04X}", self.value) |
61 |
61 |
} |
62 |
62 |
} |
@@ -144,7 +144,7 @@ impl ops::DerefMut for Wtf8Buf { |
|
|
144 |
144 |
/// Example: `"a\u{D800}"` for a string with code points [U+0061, U+D800] |
145 |
145 |
impl fmt::Debug for Wtf8Buf { |
146 |
146 |
#[inline] |
147 |
|
-fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> { |
|
147 |
+fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { |
148 |
148 |
fmt::Debug::fmt(&**self, formatter) |
149 |
149 |
} |
150 |
150 |
} |
Original file line number |
Diff line number |
Diff line change |
@@ -989,7 +989,7 @@ mod strcursor { |
|
|
989 |
989 |
} |
990 |
990 |
|
991 |
991 |
impl<'a> std::fmt::Debug for StrCursor<'a> { |
992 |
|
-fn fmt(&self, fmt: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { |
|
992 |
+fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result { |
993 |
993 |
write!(fmt, "StrCursor({:?} | {:?})", self.slice_before(), self.slice_after()) |
994 |
994 |
} |
995 |
995 |
} |
Original file line number |
Diff line number |
Diff line change |
@@ -15,7 +15,7 @@ use std::{env, fmt, process, sync, thread}; |
|
|
15 |
15 |
|
16 |
16 |
struct SlowFmt(u32); |
17 |
17 |
impl fmt::Debug for SlowFmt { |
18 |
|
-fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { |
|
18 |
+fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
19 |
19 |
thread::sleep_ms(3); |
20 |
20 |
self.0.fmt(f) |
21 |
21 |
} |
Original file line number |
Diff line number |
Diff line change |
@@ -15,7 +15,7 @@ union U { |
|
|
15 |
15 |
} |
16 |
16 |
|
17 |
17 |
impl fmt::Display for U { |
18 |
|
-fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { |
|
18 |
+fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
19 |
19 |
unsafe { write!(f, "Oh hai {}", self.a) } |
20 |
20 |
} |
21 |
21 |
} |
|