diff examples/eclrenderer.rs @ 701:b6c351ca0a35

anm0: return the nom IResult and the list of Anm0s.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 23 Aug 2019 15:34:03 +0200
parents ccb739c5b66c
children bca515da9047
line wrap: on
line diff
--- a/examples/eclrenderer.rs
+++ b/examples/eclrenderer.rs
@@ -115,7 +115,8 @@ fn main() {
 
     // Open the ANM file.
     let buf = load_file_into_vec(anm_filename);
-    let anm0 = Anm0::from_slice(&buf).unwrap();
+    let (_, mut anms) = Anm0::from_slice(&buf).unwrap();
+    let anm0 = anms.pop().unwrap();
     let anm0 = Rc::new(RefCell::new(anm0));
 
     if ecl.subs.len() < sub as usize {