diff options
Diffstat (limited to 'runtime/build.rs')
-rw-r--r-- | runtime/build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/build.rs b/runtime/build.rs index 71301a36b..3feca3e76 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -36,7 +36,7 @@ mod not_docs { } 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 = { @@ -63,7 +63,7 @@ mod not_docs { 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()); } |