Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9cc3a9c

Browse files
committed
fix: formatting
1 parent 16995ce commit 9cc3a9c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/hir-ty/src/mir/lower.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,9 @@ impl<'ctx> MirLowerCtx<'ctx> {
13661366
LiteralOrConst::Const(c) => {
13671367
let c = match &self.body.pats[*c] {
13681368
Pat::Path(p) => p,
1369-
_ => not_supported!("only `char` and numeric types are allowed in range patterns"),
1369+
_ => not_supported!(
1370+
"only `char` and numeric types are allowed in range patterns"
1371+
),
13701372
};
13711373
let unresolved_name = || MirLowerError::unresolved_path(self.db, c.as_ref());
13721374
let resolver = self.owner.resolver(self.db.upcast());

crates/ide/src/goto_definition.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ fn bar() {
536536
);
537537
}
538538

539-
#[test]
539+
#[test]
540540
fn goto_definition_works_for_consts_inside_range_pattern() {
541541
check(
542542
r#"

0 commit comments

Comments
 (0)