fixes for rustfmt + ast visitor
This commit is contained in:
parent
a3be235fcc
commit
494560cb57
@ -264,7 +264,7 @@ fn rewrite_closure_fn_decl(
|
||||
""
|
||||
};
|
||||
let is_async = if asyncness.is_async() { "async " } else { "" };
|
||||
let mover = if capture == ast::CaptureBy::Value {
|
||||
let mover = if matches!(capture, ast::CaptureBy::Value { .. }) {
|
||||
"move "
|
||||
} else {
|
||||
""
|
||||
|
@ -368,7 +368,7 @@ fn needs_space_after_range(rhs: &ast::Expr) -> bool {
|
||||
}
|
||||
}
|
||||
ast::ExprKind::Gen(capture_by, ref block, ref kind) => {
|
||||
let mover = if capture_by == ast::CaptureBy::Value {
|
||||
let mover = if matches!(capture_by, ast::CaptureBy::Value { .. }) {
|
||||
"move "
|
||||
} else {
|
||||
""
|
||||
|
Loading…
Reference in New Issue
Block a user