|
@@ -60,9 +60,11 @@ fn main() {
|
|
|
let result = load_ksudoku(filename.to_path_buf());
|
|
|
if result.is_err() {
|
|
|
println!("Failed to load file: {}", filename.display());
|
|
|
- println!("{:?}", result.err());
|
|
|
+ // Safe to unrap error.
|
|
|
+ println!("{:?}", result.unwrap_err());
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
let puzzle = result.unwrap();
|
|
|
// Ksudoku is stored TLD.
|
|
|
s.load_from_tld('b', '_', puzzle.as_str());
|