diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-10-25 11:55:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 11:55:57 -0400 |
commit | e203bd9c5a4eb1b338c94bdcd4b2e91e7e1c5168 (patch) | |
tree | a3dbebd1d701c7c84813e7eb2cf59d90fc4b6419 /cli/lockfile.rs | |
parent | 606db35ccbe8e3c1ce93ae943a2f9850558400af (diff) |
fix: upgrade swc_ecma_parser to 0.122.19 - deno_ast 0.20 (#16406)
Diffstat (limited to 'cli/lockfile.rs')
-rw-r--r-- | cli/lockfile.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/lockfile.rs b/cli/lockfile.rs index 067a0adf9..b572b9d93 100644 --- a/cli/lockfile.rs +++ b/cli/lockfile.rs @@ -154,11 +154,10 @@ impl deno_graph::source::Locker for Locker { pub fn as_maybe_locker( lockfile: Option<Arc<Mutex<Lockfile>>>, -) -> Option<Rc<RefCell<Box<dyn deno_graph::source::Locker>>>> { +) -> Option<Rc<RefCell<dyn deno_graph::source::Locker>>> { lockfile.as_ref().map(|lf| { - Rc::new(RefCell::new( - Box::new(Locker(Some(lf.clone()))) as Box<dyn deno_graph::source::Locker> - )) + Rc::new(RefCell::new(Locker(Some(lf.clone())))) + as Rc<RefCell<dyn deno_graph::source::Locker>> }) } |