From 8a0936faac3537b53b40d99502795ea4d2802eff Mon Sep 17 00:00:00 2001 From: ice_iix Date: Tue, 30 Jun 2020 18:53:33 -0700 Subject: [PATCH] Disable clippy::let_and_return for now in src/render/mod.rs --- src/render/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render/mod.rs b/src/render/mod.rs index 85d95e8..5c52e23 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -955,6 +955,7 @@ pub struct TextureManager { } impl TextureManager { + #[allow(clippy::let_and_return)] fn new( res: Arc>, ) -> ( @@ -968,6 +969,7 @@ impl TextureManager { let mut tm = TextureManager { textures: HashMap::with_hasher(BuildHasherDefault::default()), version: { + // TODO: fix borrow and remove clippy::let_and_return above let ver = res.read().unwrap().version(); ver },