From 9cc3a9cfc25ea36ceb0474011d51de4fc7d42f7a Mon Sep 17 00:00:00 2001 From: roife Date: Tue, 5 Mar 2024 19:55:31 +0800 Subject: [PATCH] fix: formatting --- crates/hir-ty/src/mir/lower.rs | 4 +++- crates/ide/src/goto_definition.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/hir-ty/src/mir/lower.rs b/crates/hir-ty/src/mir/lower.rs index 577a01aee7..d0f739e6ac 100644 --- a/crates/hir-ty/src/mir/lower.rs +++ b/crates/hir-ty/src/mir/lower.rs @@ -1366,7 +1366,9 @@ impl<'ctx> MirLowerCtx<'ctx> { LiteralOrConst::Const(c) => { let c = match &self.body.pats[*c] { Pat::Path(p) => p, - _ => not_supported!("only `char` and numeric types are allowed in range patterns"), + _ => not_supported!( + "only `char` and numeric types are allowed in range patterns" + ), }; let unresolved_name = || MirLowerError::unresolved_path(self.db, c.as_ref()); let resolver = self.owner.resolver(self.db.upcast()); diff --git a/crates/ide/src/goto_definition.rs b/crates/ide/src/goto_definition.rs index aac01384cb..1bda15255d 100644 --- a/crates/ide/src/goto_definition.rs +++ b/crates/ide/src/goto_definition.rs @@ -536,7 +536,7 @@ fn bar() { ); } - #[test] + #[test] fn goto_definition_works_for_consts_inside_range_pattern() { check( r#"