Skip to content

Commit

Permalink
fix(Automattic#306): satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
grantlemons committed Dec 12, 2024
1 parent c42aecd commit 121c138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions harper-ls/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ fn lint_to_diagnostic(lint: &Lint, source: &[char], default_severity: LintSeveri
range,
severity: lint
.severity
.or_else(|| Some(default_severity))
.map(|s| severity_to_lsp(s)),
.or(Some(default_severity))
.map(severity_to_lsp),
code: None,
code_description: None,
source: Some("Harper".to_string()),
Expand Down

0 comments on commit 121c138

Please sign in to comment.