Skip to content

Commit

Permalink
chore(rust): adapt to a new lint
Browse files Browse the repository at this point in the history
  • Loading branch information
WillLillis committed Jan 12, 2025
1 parent 1669f5d commit 09208e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asm-lsp/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ pub fn handle_diagnostics(

let source_entries = compile_cmds.iter().filter(|entry| match entry.file {
SourceFile::File(ref file) => {
file.canonicalize().map_or(false, |source_path| {
file.canonicalize().is_ok_and(|source_path| {
// HACK: See comment inside `process_uri`
let cleaned_path = if cfg!(windows) {
#[allow(clippy::option_if_let_else)]
Expand Down

0 comments on commit 09208e1

Please sign in to comment.