Use default if previous values do not exist

This commit is contained in:
Sathish Ambley 2019-02-24 21:25:12 -08:00 committed by sakridge
parent 96b349dcbb
commit cc68ecdacf
1 changed files with 2 additions and 2 deletions

View File

@ -101,9 +101,9 @@ fn main() {
"{}, {:#10?}, {:#10?}, {:#10?}, {:#10?}",
entry,
values.0,
values.2.parse::<i32>().unwrap(),
values.2.parse::<i32>().unwrap_or_default(),
values.1,
values.3.parse::<i32>().unwrap(),
values.3.parse::<i32>().unwrap_or_default(),
);
}
} else {