From 8809068f01e45ddf769bf1dcfd54c248d248c1c5 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 7 Feb 2021 23:49:07 +0100 Subject: [PATCH] build: upgrade Rust to 1.49.0 (#601) --- .github/workflows/ci.yml | 2 +- src/snapshot.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 085fdf2c..f651c1fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,7 +74,7 @@ jobs: uses: hecrj/setup-rust-action@v1 with: components: clippy, rustfmt - rust-version: 1.48.0 + rust-version: 1.49.0 - name: Install python uses: actions/setup-python@v1 diff --git a/src/snapshot.rs b/src/snapshot.rs index c16a336e..cb220b3b 100644 --- a/src/snapshot.rs +++ b/src/snapshot.rs @@ -121,7 +121,7 @@ impl SnapshotCreator { /// Set the default context to be included in the snapshot blob. /// The snapshot will not contain the global proxy, and we expect one or a /// global object template to create one, to be provided upon deserialization. - pub fn set_default_context<'s>(&mut self, context: Local<'s, Context>) { + pub fn set_default_context(&mut self, context: Local) { unsafe { v8__SnapshotCreator__SetDefaultContext(self, &*context) }; }