Minor style improvements

This commit is contained in:
Adrian Heine 2023-02-24 00:21:46 +01:00
parent 4eeb280f0d
commit e569bdb416
2 changed files with 15 additions and 22 deletions

View file

@ -68,8 +68,7 @@ impl<L: 'static, B: 'static, SR: 'static, Rs: Hash + Eq + 'static, As: 'static>
resources.insert(storable_resource, future.clone());
drop(resources);
trace!(logger, "Resource already added");
let (t, did_run) = future.await;
Ok((t, did_run))
Ok(future.await)
} else {
let inner_weak = Rc::downgrade(&self.0);
let logger_weak = Rc::downgrade(logger);