Disable clippy::let_and_return for now in src/render/mod.rs
This commit is contained in:
parent
d496eaf3bb
commit
8a0936faac
|
@ -955,6 +955,7 @@ pub struct TextureManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TextureManager {
|
impl TextureManager {
|
||||||
|
#[allow(clippy::let_and_return)]
|
||||||
fn new(
|
fn new(
|
||||||
res: Arc<RwLock<resources::Manager>>,
|
res: Arc<RwLock<resources::Manager>>,
|
||||||
) -> (
|
) -> (
|
||||||
|
@ -968,6 +969,7 @@ impl TextureManager {
|
||||||
let mut tm = TextureManager {
|
let mut tm = TextureManager {
|
||||||
textures: HashMap::with_hasher(BuildHasherDefault::default()),
|
textures: HashMap::with_hasher(BuildHasherDefault::default()),
|
||||||
version: {
|
version: {
|
||||||
|
// TODO: fix borrow and remove clippy::let_and_return above
|
||||||
let ver = res.read().unwrap().version();
|
let ver = res.read().unwrap().version();
|
||||||
ver
|
ver
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue