Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
GearsDatapacks committed Nov 25, 2024
1 parent ce305b0 commit 573cf05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-core/src/language_server/code_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ pub fn code_action_inexhaustive_let_to_case(
.get(pattern_location.start as usize..pattern_location.end as usize)
.expect("Location must be valid");

let range = src_span_to_lsp_range(*location, &line_numbers);
let range = text_edits.src_span_to_lsp_range(*location);

// Figure out which variables are assigned in the pattern
let variables = PatternVariableFinder::find_variables_in_pattern(pattern);
Expand Down

0 comments on commit 573cf05

Please sign in to comment.