Skip to content

Commit 1785aa6

Browse files
authored
chore: Fix 1.88.0 clippy lints (#130)
1 parent 696899f commit 1785aa6

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl fmt::Display for Error {
125125
Error::InvalidRamBundleEntry => write!(f, "invalid ram bundle module entry"),
126126
Error::NotARamBundle => write!(f, "not a ram bundle"),
127127
Error::InvalidRangeMappingIndex(err) => write!(f, "invalid range mapping index: {err}"),
128-
Error::InvalidBase64(c) => write!(f, "invalid base64 character: {}", c),
128+
Error::InvalidBase64(c) => write!(f, "invalid base64 character: {c}"),
129129
}
130130
}
131131
}

src/types.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,7 @@ impl SourceMap {
563563
let mut buf = vec![];
564564
encode(self, &mut buf)?;
565565
let b64 = base64_simd::STANDARD.encode_to_string(&buf);
566-
Ok(format!(
567-
"data:application/json;charset=utf-8;base64,{}",
568-
b64
569-
))
566+
Ok(format!("data:application/json;charset=utf-8;base64,{b64}"))
570567
}
571568

572569
/// Creates a sourcemap from a reader over a JSON byte slice in UTF-8

0 commit comments

Comments
 (0)