Remove unnecessary unwrap_or

This was always questionable, and removing it doesn't fail any tests, so
I think this was not affecting the behavior. It dates all the way back
to the very first commit of rustdoc: 268f3f0ff5
This commit is contained in:
Joshua Nelson 2020-12-14 19:06:41 -05:00
parent cbab347e68
commit 89fc5034f4

View File

@ -254,7 +254,6 @@ impl Clean<Item> for doctree::Module<'_> {
cx,
);
Item {
name: Some(what_rustc_thinks.name.unwrap_or_default()),
attrs,
source: span.clean(cx),
..what_rustc_thinks