Skip to content

Commit

Permalink
Fix rust panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Manvi-Agrawal committed Jun 4, 2024
1 parent cc20abf commit 3944165
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions language_service/src/code_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use qsc::{
line_column::{Encoding, Range},
Span,
};
use qsc_linter::AstLint;
use qsc_linter::{AstLint, HirLint};

use crate::{
compilation::Compilation,
Expand Down Expand Up @@ -87,8 +87,8 @@ fn quick_fixes(
kind: Some(CodeActionKind::QuickFix),
is_preferred: None,
}),
LintKind::Ast(AstLint::DivisionByZero) => (),
LintKind::Hir(_) => todo!(),
LintKind::Ast(AstLint::DivisionByZero)
| LintKind::Hir(HirLint::NeedlessOperation) => (),
}
}
}
Expand Down

0 comments on commit 3944165

Please sign in to comment.