Skip to content

Commit ced3cd8

Browse files
committed
rust-analyzer guided tuple field to named field
1 parent c2890ec commit ced3cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@ pub(crate) struct StaticParts<'a> {
18051805
impl<'a> StaticParts<'a> {
18061806
pub(crate) fn from_item(item: &'a ast::Item) -> Self {
18071807
let (defaultness, prefix, ty, mutability, expr) = match item.kind {
1808-
ast::ItemKind::Static(ast::Static(ref ty, mutability, ref expr)) => {
1808+
ast::ItemKind::Static(ast::Static { ref ty, mutability, ref expr}) => {
18091809
(None, "static", ty, mutability, expr)
18101810
}
18111811
ast::ItemKind::Const(defaultness, ref ty, ref expr) => {

0 commit comments

Comments
 (0)