Skip to content

Commit 347c467

Browse files
committed
ref: reuse constructor
1 parent dc0c809 commit 347c467

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

crates/legacy-zebra/src/thordb.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -553,16 +553,7 @@ pub fn read_game_database(thor: &mut LegacyThor, file_name: &str) -> i32 {
553553
*/
554554

555555
pub fn game_database_already_loaded(file_name: &str, current_db_: &Option<Box<DatabaseType>>) -> i32 {
556-
let mut new_prolog =
557-
PrologType{creation_century: 0,
558-
creation_year: 0,
559-
creation_month: 0,
560-
creation_day: 0,
561-
game_count: 0,
562-
item_count: 0,
563-
origin_year: 0,
564-
reserved: 0,
565-
};
556+
let mut new_prolog = PrologType::new();
566557
let mut stream = match File::open(file_name) {
567558
Ok(s) => s,
568559
Err(_) => return 0

0 commit comments

Comments
 (0)