Skip to content

Commit

Permalink
reformat err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekun Wang committed Jun 5, 2024
1 parent da23980 commit a1e7aa4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl UnusedAssignmentChecker {
let dst_name = dst_name.display(target.func_env.symbol_pool()).to_string();
if !dst_name.starts_with('_') && live_var_info.get(&dst).is_none() {
let loc = target.get_bytecode_loc(id);
target.global_env().diag(Severity::Warning, &loc, &format!("Unused assignment to {}. Consider removing or prefixing with an underscore: `_{}`", dst_name, dst_name));
target.global_env().diag(Severity::Warning, &loc, &format!("Unused assignment to `{}`. Consider removing or prefixing with an underscore: `_{}`", dst_name, dst_name));
}
}
}
Expand Down

0 comments on commit a1e7aa4

Please sign in to comment.