diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-25 12:50:47 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-25 22:11:14 +1100 |
| commit | 6bea9c7a5465e27efbadced28322e6faf78bb174 (patch) | |
| tree | 482c48c70c00000cec97f955dc25c9dcae7e8fd0 /src/librustdoc/formats | |
| parent | aa8f0fd7163a2f23aa958faed30c9c2b77b934a5 (diff) | |
| download | rust-6bea9c7a5465e27efbadced28322e6faf78bb174.tar.gz rust-6bea9c7a5465e27efbadced28322e6faf78bb174.zip | |
rustdoc: remove useless `Symbol::is_empty` checks.
There are a number of `is_empty` checks that can never fail. This commit removes them.
Diffstat (limited to 'src/librustdoc/formats')
| -rw-r--r-- | src/librustdoc/formats/cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/formats/cache.rs b/src/librustdoc/formats/cache.rs index 2648641e53e..e74fd67fbda 100644 --- a/src/librustdoc/formats/cache.rs +++ b/src/librustdoc/formats/cache.rs @@ -288,7 +288,7 @@ impl DocFolder for CacheBuilder<'_, '_> { // Keep track of the fully qualified path for this item. let pushed = match item.name { - Some(n) if !n.is_empty() => { + Some(n) => { self.cache.stack.push(n); true } |
