Disable clippy::let_and_return for now in src/render/mod.rs

This commit is contained in:
ice_iix 2020-06-30 18:53:33 -07:00
parent d496eaf3bb
commit 8a0936faac
1 changed files with 2 additions and 0 deletions

View File

@ -955,6 +955,7 @@ pub struct TextureManager {
}
impl TextureManager {
#[allow(clippy::let_and_return)]
fn new(
res: Arc<RwLock<resources::Manager>>,
) -> (
@ -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
},