diff examples/anmrenderer.rs @ 752:5e5e7136ac92

examples: Return a Result for load_file_into_vec()
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 29 Jan 2020 17:45:25 +0100
parents 0fed350d1778
children a662dddd4a2b
line wrap: on
line diff
--- a/examples/anmrenderer.rs
+++ b/examples/anmrenderer.rs
@@ -107,7 +107,7 @@ fn main() {
     let script: u8 = args[2].parse().expect("number");
 
     // Open the ANM file.
-    let buf = load_file_into_vec(anm_filename);
+    let buf = load_file_into_vec(anm_filename).unwrap();
     let (_, mut anms) = Anm0::from_slice(&buf).unwrap();
     let anm0 = anms.pop().unwrap();