mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-13 23:42:56 +00:00
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
@ -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…
Reference in New Issue
Block a user