diff options
| author | Michael Howell <michael@notriddle.com> | 2024-08-30 10:52:45 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2024-09-07 21:06:50 -0700 |
| commit | 65903362ad810c572e8ae742f6ed5ae3548238e4 (patch) | |
| tree | a7658890f8165abdda135c92045ccdb77612a720 /src/librustdoc/formats/mod.rs | |
| parent | e80c9ac3e213c0c2e6d1a80ea2d4bf074ff8f887 (diff) | |
| download | rust-65903362ad810c572e8ae742f6ed5ae3548238e4.tar.gz rust-65903362ad810c572e8ae742f6ed5ae3548238e4.zip | |
rustdoc: use a single box to store Attributes and ItemKind
Diffstat (limited to 'src/librustdoc/formats/mod.rs')
| -rw-r--r-- | src/librustdoc/formats/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/formats/mod.rs b/src/librustdoc/formats/mod.rs index 84adca8efa9..0bdea36043c 100644 --- a/src/librustdoc/formats/mod.rs +++ b/src/librustdoc/formats/mod.rs @@ -16,7 +16,7 @@ pub(crate) struct Impl { impl Impl { pub(crate) fn inner_impl(&self) -> &clean::Impl { - match *self.impl_item.kind { + match self.impl_item.kind { clean::ImplItem(ref impl_) => impl_, _ => panic!("non-impl item found in impl"), } |
