diff examples/stdrenderer.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/stdrenderer.rs
+++ b/examples/stdrenderer.rs
@@ -132,7 +132,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();
 
     // TODO: seed this PRNG with a valid seed.
     let prng = Rc::new(RefCell::new(Prng::new(0)));