Skip to content

Commit

Permalink
rust-analyzer guided enum variant structification
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Apr 4, 2023
1 parent 5cbb08d commit c2890ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c2890ec

Please sign in to comment.