about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-12 19:28:13 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2023-12-12 19:28:13 +0100
commitd707461a1a02edd7a1f2591d62499d00b370e75f (patch)
tree30aff2861eba8a08d206c97a5e6104756c8e5abf /src/librustdoc/html/render
parent27d8a577138c0d319a572cd1a464c2b755e577de (diff)
downloadrust-d707461a1a02edd7a1f2591d62499d00b370e75f.tar.gz
rust-d707461a1a02edd7a1f2591d62499d00b370e75f.zip
clippy::complexity fixes
 filter_map_identity
 needless_bool
 search_is_some
 unit_arg
 map_identity
 needless_question_mark
 derivable_impls
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/type_layout.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/type_layout.rs b/src/librustdoc/html/render/type_layout.rs
index ee581173a4a..738ea0aee7e 100644
--- a/src/librustdoc/html/render/type_layout.rs
+++ b/src/librustdoc/html/render/type_layout.rs
@@ -79,6 +79,7 @@ pub(crate) fn document_type_layout<'a, 'cx: 'a>(
             TypeLayoutSize { is_unsized, is_uninhabited, size }
         });
 
-        Ok(TypeLayout { variants, type_layout_size }.render_into(f).unwrap())
+        TypeLayout { variants, type_layout_size }.render_into(f).unwrap();
+        Ok(())
     })
 }