Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
roife committed Mar 5, 2024
1 parent 16995ce commit 9cc3a9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion crates/hir-ty/src/mir/lower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion crates/ide/src/goto_definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ fn bar() {
);
}

#[test]
#[test]
fn goto_definition_works_for_consts_inside_range_pattern() {
check(
r#"
Expand Down

0 comments on commit 9cc3a9c

Please sign in to comment.