From 4ef9b8d17a75d3f68951f506ad390e1367c1b2ad Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 26 Oct 2019 18:03:55 +0300 Subject: use correct spacing for enum pattern --- crates/ra_assists/src/assists/fill_match_arms.rs | 6 +++--- crates/ra_assists/src/doc_tests/generated.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_assists/src') diff --git a/crates/ra_assists/src/assists/fill_match_arms.rs b/crates/ra_assists/src/assists/fill_match_arms.rs index 13b98d033..b6166f947 100644 --- a/crates/ra_assists/src/assists/fill_match_arms.rs +++ b/crates/ra_assists/src/assists/fill_match_arms.rs @@ -26,7 +26,7 @@ use crate::{Assist, AssistCtx, AssistId}; // // fn handle(action: Action) { // match action { -// Action::Move{ distance } => (), +// Action::Move { distance } => (), // Action::Stop => (), // } // } @@ -154,7 +154,7 @@ mod tests { A::Bs => (), A::Cs(_) => (), A::Ds(_, _) => (), - A::Es{ x, y } => (), + A::Es { x, y } => (), } } "#, @@ -207,7 +207,7 @@ mod tests { fn foo(a: &mut A) { match <|>a { - A::Es{ x, y } => (), + A::Es { x, y } => (), } } "#, diff --git a/crates/ra_assists/src/doc_tests/generated.rs b/crates/ra_assists/src/doc_tests/generated.rs index 2f36c3baa..43fa159d7 100644 --- a/crates/ra_assists/src/doc_tests/generated.rs +++ b/crates/ra_assists/src/doc_tests/generated.rs @@ -196,7 +196,7 @@ enum Action { Move { distance: u32 }, Stop } fn handle(action: Action) { match action { - Action::Move{ distance } => (), + Action::Move { distance } => (), Action::Stop => (), } } -- cgit v1.2.3