diff options
| author | Andre Bogus <bogusandre@gmail.com> | 2018-05-09 01:41:44 +0200 |
|---|---|---|
| committer | Andre Bogus <bogusandre@gmail.com> | 2018-05-09 02:01:37 +0200 |
| commit | e333725664c45874262ecb11e511c17cfd4672f0 (patch) | |
| tree | b5f01abb2bc85e81b5b6f16c8ec4b4eb2962e2f6 /src/librustdoc/html | |
| parent | 8ff4b42064b374bb62043f7729f84b6d979c7667 (diff) | |
| download | rust-e333725664c45874262ecb11e511c17cfd4672f0.tar.gz rust-e333725664c45874262ecb11e511c17cfd4672f0.zip | |
use fmt::Result where applicable
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/render.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 21de2db1dfe..fe9fc3ddd68 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -2579,7 +2579,7 @@ fn item_function(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item, } fn render_implementor(cx: &Context, implementor: &Impl, w: &mut fmt::Formatter, - implementor_dups: &FxHashMap<&str, (DefId, bool)>) -> Result<(), fmt::Error> { + implementor_dups: &FxHashMap<&str, (DefId, bool)>) -> fmt::Result { write!(w, "<li><table class='table-display'><tbody><tr><td><code>")?; // If there's already another implementor that has the same abbridged name, use the // full path, for example in `std::iter::ExactSizeIterator` @@ -2612,7 +2612,7 @@ fn render_implementor(cx: &Context, implementor: &Impl, w: &mut fmt::Formatter, fn render_impls(cx: &Context, w: &mut fmt::Formatter, traits: &[&&Impl], - containing_item: &clean::Item) -> Result<(), fmt::Error> { + containing_item: &clean::Item) -> fmt::Result { for i in traits { let did = i.trait_did().unwrap(); let assoc_link = AssocItemLink::GotoSource(did, &i.inner_impl().provided_trait_methods); |
