From 3d0d3f705d3c286c885ba98b120d4c828a4529ca Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Fri, 27 Jun 2025 11:12:02 +0200 Subject: [PATCH 1/2] chore: Fix 1.88.0 clippy lints --- src/errors.rs | 2 +- src/types.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index d833dc34..01342f96 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -125,7 +125,7 @@ impl fmt::Display for Error { Error::InvalidRamBundleEntry => write!(f, "invalid ram bundle module entry"), Error::NotARamBundle => write!(f, "not a ram bundle"), Error::InvalidRangeMappingIndex(err) => write!(f, "invalid range mapping index: {err}"), - Error::InvalidBase64(c) => write!(f, "invalid base64 character: {}", c), + Error::InvalidBase64(c) => write!(f, "invalid base64 character: {c}"), } } } diff --git a/src/types.rs b/src/types.rs index 5ef415bc..8ecda055 100644 --- a/src/types.rs +++ b/src/types.rs @@ -564,8 +564,7 @@ impl SourceMap { encode(self, &mut buf)?; let b64 = base64_simd::STANDARD.encode_to_string(&buf); Ok(format!( - "data:application/json;charset=utf-8;base64,{}", - b64 + "data:application/json;charset=utf-8;base64,{b64}" )) } From 181901483ef407c22ca2a0c25abb3566114fbd6d Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Fri, 27 Jun 2025 11:13:06 +0200 Subject: [PATCH 2/2] Formatting --- src/types.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/types.rs b/src/types.rs index 8ecda055..cc6fd7b2 100644 --- a/src/types.rs +++ b/src/types.rs @@ -563,9 +563,7 @@ impl SourceMap { let mut buf = vec![]; encode(self, &mut buf)?; let b64 = base64_simd::STANDARD.encode_to_string(&buf); - Ok(format!( - "data:application/json;charset=utf-8;base64,{b64}" - )) + Ok(format!("data:application/json;charset=utf-8;base64,{b64}")) } /// Creates a sourcemap from a reader over a JSON byte slice in UTF-8