diff options
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 4 |
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()); } |