1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-09 15:37:45 +00:00

Address two of "warning: this expression creates a reference which is immediately dereferenced by the compiler"

This commit is contained in:
The Dax 2025-07-08 17:27:36 -04:00 committed by Joshua Goins
parent 22dc1dbaaa
commit c72526a34d

View file

@ -44,7 +44,7 @@ impl Zone {
let lgb = Lvb::from_existing(&lgb_file).unwrap();
let mut load_lgb = |path: &str| -> Option<LayerGroup> {
let lgb_file = game_data.game_data.extract(&path)?;
let lgb_file = game_data.game_data.extract(path)?;
tracing::info!("Loading {path}");
let lgb = LayerGroup::from_existing(&lgb_file);
if lgb.is_none() {
@ -56,7 +56,7 @@ impl Zone {
};
for path in &lgb.scns[0].header.path_layer_group_resources {
if let Some(lgb) = load_lgb(&path) {
if let Some(lgb) = load_lgb(path) {
zone.layer_groups.push(lgb);
}
}