Skip to content

Commit 327dc46

Browse files
chore: fix clippy
1 parent bac6199 commit 327dc46

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/spidermonkey-embedding-splicer/src/bin/splicer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ fn main() -> Result<()> {
127127
splice::splice_bindings(engine, features, None, wit_path_str, world_name, debug)
128128
.map_err(|e| anyhow::anyhow!(e))?;
129129

130-
fs::write(&out_dir.join("component.wasm"), result.wasm).with_context(|| {
130+
fs::write(out_dir.join("component.wasm"), result.wasm).with_context(|| {
131131
format!(
132132
"Failed to write output file: {}",
133133
out_dir.join("component.wasm").display()

crates/spidermonkey-embedding-splicer/src/splice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ pub fn splice_bindings(
257257
));
258258
}
259259

260-
let mut wasm = splice::splice(engine, imports, exports, features, debug)
261-
.map_err(|e| format!("{:?}", e))?;
260+
let mut wasm =
261+
splice::splice(engine, imports, exports, features, debug).map_err(|e| format!("{e:?}"))?;
262262

263263
// add the world section to the spliced wasm
264264
wasm.push(section.id());

0 commit comments

Comments
 (0)