Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clippy
  • Loading branch information
ShaharNaveh committed May 27, 2026
commit e6bf997391cd8d58a8809c2519745804449c9c06
4 changes: 2 additions & 2 deletions crates/compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl CompileError {
end_loc.character_offset = end_loc.character_offset.saturating_add(1);
}

let expr_str = source_file.source_text().slice(&error.location);
let expr_str = source_file.source_text().slice(error.location);

let msg = parser::parse_expression(expr_str).map_or_else(
|_| match expr_str {
Expand Down Expand Up @@ -171,7 +171,7 @@ impl CompileError {
end_loc.character_offset = end_loc.character_offset.saturating_add(1);
}

let target = source_file.source_text().slice(&error.location);
let target = source_file.source_text().slice(error.location);
let msg = format!("cannot use assignment expressions with {target}");
(ParseErrorType::OtherError(msg), loc, end_loc)
}
Expand Down
Loading