diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-12-14 19:06:41 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-12-14 21:49:13 -0500 |
| commit | 89fc5034f4f8bca86cbf2c29c8c00366a7b4a33c (patch) | |
| tree | f4b4ff342811e6d96ac52cffff506de944e17573 | |
| parent | cbab347e68d31cba63105f966617a86758134a8f (diff) | |
| download | rust-89fc5034f4f8bca86cbf2c29c8c00366a7b4a33c.tar.gz rust-89fc5034f4f8bca86cbf2c29c8c00366a7b4a33c.zip | |
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: 268f3f0ff5d80544ca21d565354eae6d3e29fb91
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 1a63a5092ca..1a004231a10 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -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 |
