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:
parent
cbab347e68
commit
89fc5034f4
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue