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())); } };