From c72526a34de736ae8090e263a216348a0e768bf4 Mon Sep 17 00:00:00 2001 From: The Dax Date: Tue, 8 Jul 2025 17:27:36 -0400 Subject: [PATCH] Address two of "warning: this expression creates a reference which is immediately dereferenced by the compiler" --- src/world/zone.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/zone.rs b/src/world/zone.rs index 4797478..9e254bd 100644 --- a/src/world/zone.rs +++ b/src/world/zone.rs @@ -44,7 +44,7 @@ impl Zone { let lgb = Lvb::from_existing(&lgb_file).unwrap(); let mut load_lgb = |path: &str| -> Option { - 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); } }