Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"),
}
}
}
5 changes: 1 addition & 4 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading