diff examples/dump_ecl.rs @ 756:4d91790cf8ab

Fix dump_ecl example.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 05 Jan 2021 01:14:52 +0100
parents eea03c9ca604
children
line wrap: on
line diff
--- a/examples/dump_ecl.rs
+++ b/examples/dump_ecl.rs
@@ -33,7 +33,7 @@ fn main() {
     let ecl_filename = Path::new(&args[1]);
 
     // Open the ECL file.
-    let buf = load_file_into_vec(ecl_filename);
+    let buf = load_file_into_vec(ecl_filename).unwrap();
     let (_, ecl) = Ecl::from_slice(&buf).unwrap();
 
     for (i, main) in ecl.mains.iter().enumerate() {