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 | c2890ec2d7f1cd7d8af262ffe9177094756f84b0 (patch) | |
| tree | de9acedcebf06c2c3ec92bc00e7b9b1f0156acf1 | |
| parent | 5cbb08db006e9746d0843e0387e5629777322367 (diff) | |
| download | rust-c2890ec2d7f1cd7d8af262ffe9177094756f84b0.tar.gz rust-c2890ec2d7f1cd7d8af262ffe9177094756f84b0.zip | |
rust-analyzer guided enum variant structification
| -rw-r--r-- | src/items.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/items.rs b/src/items.rs index 25e8a024857..520bb527800 100644 --- a/src/items.rs +++ b/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) => { |
