Skip to content

Commit 89fc503

Browse files
committed
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: 268f3f0
1 parent cbab347 commit 89fc503

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustdoc/clean/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ impl Clean<Item> for doctree::Module<'_> {
254254
cx,
255255
);
256256
Item {
257-
name: Some(what_rustc_thinks.name.unwrap_or_default()),
258257
attrs,
259258
source: span.clean(cx),
260259
..what_rustc_thinks

0 commit comments

Comments
 (0)