diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-03-29 08:37:47 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-04-04 09:44:45 +0000 |
| commit | b08a557f80865433d39d47934904a81b8ab3d720 (patch) | |
| tree | f4cdac16cdb87e09fd3d5b1c9eb4935ea455f357 /src/tools/rustfmt | |
| parent | 35d06f9c747bc791d7d6902248d851da98616a57 (diff) | |
| download | rust-b08a557f80865433d39d47934904a81b8ab3d720.tar.gz rust-b08a557f80865433d39d47934904a81b8ab3d720.zip | |
rust-analyzer guided enum variant structification
Diffstat (limited to 'src/tools/rustfmt')
| -rw-r--r-- | src/tools/rustfmt/src/items.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/items.rs b/src/tools/rustfmt/src/items.rs index 25e8a024857..520bb527800 100644 --- a/src/tools/rustfmt/src/items.rs +++ b/src/tools/rustfmt/src/items.rs @@ -1805,7 +1805,7 @@ pub(crate) struct StaticParts<'a> { impl<'a> StaticParts<'a> { pub(crate) fn from_item(item: &'a ast::Item) -> Self { let (defaultness, prefix, ty, mutability, expr) = match item.kind { - ast::ItemKind::Static(ref ty, mutability, ref expr) => { + ast::ItemKind::Static(ast::Static(ref ty, mutability, ref expr)) => { (None, "static", ty, mutability, expr) } ast::ItemKind::Const(defaultness, ref ty, ref expr) => { |
