Skip to content

Commit

Permalink
fix lint on wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Hipple committed Dec 13, 2023
1 parent f12f0f5 commit 3dad7ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/ruff_linter/src/message/sarif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::io::Write;
#[cfg(not(target_arch = "wasm32"))]
use url::Url;

#[allow(unused_imports)]
use anyhow::{anyhow, Result};
use serde::{Serialize, Serializer};
use serde_json::json;
Expand Down Expand Up @@ -136,6 +137,7 @@ impl SarifResult {
})
}

#[allow(clippy::unnecessary_wraps)]
#[cfg(target_arch = "wasm32")]
fn from_message(message: &Message) -> Result<Self> {
let start_location = message.compute_start_location();
Expand Down

0 comments on commit 3dad7ad

Please sign in to comment.