From b553d6ff9c7b0c30a44271b2c78c57ac6f482239 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Tue, 3 Dec 2024 02:18:57 +0000 Subject: [PATCH] fix(span): fix clippy warning (#7591) Fix clippy warning. Only triggers when running clippy in `--release` mode. --- crates/oxc_span/src/source_type/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_span/src/source_type/mod.rs b/crates/oxc_span/src/source_type/mod.rs index c8d9f1e3b1f12..f4e2241e7c3c5 100644 --- a/crates/oxc_span/src/source_type/mod.rs +++ b/crates/oxc_span/src/source_type/mod.rs @@ -486,7 +486,7 @@ impl SourceType { #[cfg(debug_assertions)] unreachable!(); #[cfg(not(debug_assertions))] - return Err(UnknownExtension(format!("Unknown extension: {}", extension).into())); + return Err(UnknownExtension(format!("Unknown extension: {extension}").into())); } };