summaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2022-11-17 22:59:10 -0300
committerGitHub <noreply@github.com>2022-11-18 02:59:10 +0100
commit238590aa9fdfe2aac04bb96abad2f2d2feb3101a (patch)
treef8fa04e39baecb5460076c1329ca38ae31f440b6 /cli/build.rs
parent483c10c94b8a5de49cee4c4b9a3ce74726501c8a (diff)
chore: use Rust 1.65.0 (#16688)
Diffstat (limited to 'cli/build.rs')
-rw-r--r--cli/build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/build.rs b/cli/build.rs
index 3bdf2dfb3..73d0208f6 100644
--- a/cli/build.rs
+++ b/cli/build.rs
@@ -39,7 +39,7 @@ fn create_snapshot(
}
let snapshot = js_runtime.snapshot();
- let snapshot_slice: &[u8] = &*snapshot;
+ let snapshot_slice: &[u8] = &snapshot;
println!("Snapshot size: {}", snapshot_slice.len());
let compressed_snapshot_with_size = {
@@ -64,7 +64,7 @@ fn create_snapshot(
compressed_snapshot_with_size.len()
);
- std::fs::write(&snapshot_path, compressed_snapshot_with_size).unwrap();
+ std::fs::write(snapshot_path, compressed_snapshot_with_size).unwrap();
println!("Snapshot written to: {} ", snapshot_path.display());
}