mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 23:24:37 +00:00
core: Add test for snapshotting from Rust (#2197)
This commit is contained in:
parent
f694823507
commit
7fc9d7d62a
5 changed files with 78 additions and 35 deletions
|
@ -126,13 +126,6 @@ unsafe impl Send for deno_snapshot<'_> {}
|
|||
/// The type returned from deno_snapshot_new. Needs to be dropped.
|
||||
pub type Snapshot1<'a> = deno_snapshot<'a>;
|
||||
|
||||
// TODO Does this make sense?
|
||||
impl Drop for Snapshot1<'_> {
|
||||
fn drop(&mut self) {
|
||||
unsafe { deno_snapshot_delete(self) }
|
||||
}
|
||||
}
|
||||
|
||||
/// The type created from slice. Used for loading.
|
||||
pub type Snapshot2<'a> = deno_snapshot<'a>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue