diff --git a/src/errors.rs b/src/errors.rs index d833dc3..01342f9 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 5ef415b..cc6fd7b 100644 --- a/src/types.rs +++ b/src/types.rs @@ -563,10 +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