Skip to content

Commit 1974a9a

Browse files
authored
Merge pull request #77 from Fahien/upgrade-wow-dbc
Upgrade wow-dbc to version 0.3
2 parents e63af8d + 40c6142 commit 1974a9a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

world_server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ hex = { version = "0.4" }
2727
cmdparse = { version = "0.1" }
2828

2929
wow_srp = { version = "0.6.0" }
30-
wow_dbc = { version = "0.2", features = ["wrath"] }
30+
wow_dbc = { version = "0.3", features = ["wrath"] }
3131
wow_world_base = { git="https://github.com/gtker/wow_messages.git", rev="55c2b641b7dbd09ca1de882f5fce814e4a91c068", features=["extended"] }
3232
wow_world_messages = { git="https://github.com/gtker/wow_messages.git", rev="55c2b641b7dbd09ca1de882f5fce814e4a91c068", features=["wrath", "async-std", "chrono"] }
3333
wow_items = { git="https://github.com/gtker/wow_messages.git", rev="55c2b641b7dbd09ca1de882f5fce814e4a91c068", features = ["wrath"] }

world_server/src/data/data_storage/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async fn load_standard_dbc<T: wow_dbc::DbcTable>(folder_path: impl Into<&str>, t
2020
assert!(table.is_none());
2121

2222
//Use async to read the file into memory
23-
let filename = T::filename();
23+
let filename = T::FILENAME;
2424
let path: PathBuf = [folder_path.into(), filename].iter().collect();
2525
info!("loading {}", path.to_str().unwrap());
2626
let file_handle = smol::fs::File::open(path).await?;
@@ -34,7 +34,7 @@ async fn load_standard_dbc<T: wow_dbc::DbcTable>(folder_path: impl Into<&str>, t
3434
if let Ok(t) = res {
3535
*table = Some(t);
3636
} else if let Err(e) = res {
37-
error!("Failure while loading {}, {}", T::filename(), e);
37+
error!("Failure while loading {}, {}", T::FILENAME, e);
3838
}
3939
Ok(())
4040
}

0 commit comments

Comments
 (0)