summaryrefslogtreecommitdiff
path: root/cli/lockfile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lockfile.rs')
-rw-r--r--cli/lockfile.rs7
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>>
})
}