mirror of
https://github.com/redstrate/Kawari.git
synced 2025-07-09 23:47:46 +00:00
Address two of "warning: this expression creates a reference which is immediately dereferenced by the compiler"
This commit is contained in:
parent
22dc1dbaaa
commit
c72526a34d
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ impl Zone {
|
||||||
let lgb = Lvb::from_existing(&lgb_file).unwrap();
|
let lgb = Lvb::from_existing(&lgb_file).unwrap();
|
||||||
|
|
||||||
let mut load_lgb = |path: &str| -> Option<LayerGroup> {
|
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}");
|
tracing::info!("Loading {path}");
|
||||||
let lgb = LayerGroup::from_existing(&lgb_file);
|
let lgb = LayerGroup::from_existing(&lgb_file);
|
||||||
if lgb.is_none() {
|
if lgb.is_none() {
|
||||||
|
@ -56,7 +56,7 @@ impl Zone {
|
||||||
};
|
};
|
||||||
|
|
||||||
for path in &lgb.scns[0].header.path_layer_group_resources {
|
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);
|
zone.layer_groups.push(lgb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue