From afd0dce18028a369c044c6b2a3b6bc72b0376c25 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 16 May 2025 08:35:05 -0500 Subject: [PATCH] style: Make clippy happy --- crates/typos-cli/src/bin/typos-cli/report.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/typos-cli/src/bin/typos-cli/report.rs b/crates/typos-cli/src/bin/typos-cli/report.rs index a10381c3..74aeccdd 100644 --- a/crates/typos-cli/src/bin/typos-cli/report.rs +++ b/crates/typos-cli/src/bin/typos-cli/report.rs @@ -386,10 +386,7 @@ impl PrintSarif { } fn sarif_error_mapper(error: impl std::fmt::Display) -> std::io::Error { - std::io::Error::new( - std::io::ErrorKind::Other, - format!("failed to generate SARIF output: {error}"), - ) + std::io::Error::other(format!("failed to generate SARIF output: {error}")) } fn typo_to_sarif_result(