Skip to content

Commit

Permalink
Rename BindingAnnotation to BindingMode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet committed Apr 17, 2024
1 parent a568985 commit 932f3ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/patterns.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use rustc_ast::ast::{
self, BindingAnnotation, ByRef, Pat, PatField, PatKind, RangeEnd, RangeSyntax,
};
use rustc_ast::ast::{self, BindingMode, ByRef, Pat, PatField, PatKind, RangeEnd, RangeSyntax};
use rustc_ast::ptr;
use rustc_span::{BytePos, Span};

Expand Down Expand Up @@ -106,7 +104,7 @@ impl Rewrite for Pat {
write_list(&items, &fmt)
}
PatKind::Box(ref pat) => rewrite_unary_prefix(context, "box ", &**pat, shape),
PatKind::Ident(BindingAnnotation(by_ref, mutability), ident, ref sub_pat) => {
PatKind::Ident(BindingMode(by_ref, mutability), ident, ref sub_pat) => {
let mut_prefix = format_mutability(mutability).trim();

let (ref_kw, mut_infix) = match by_ref {
Expand Down

0 comments on commit 932f3ab

Please sign in to comment.