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 },