changeset 756:4d91790cf8ab

Fix dump_ecl example.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 05 Jan 2021 01:14:52 +0100
parents fc937d93a57c
children 21b186be2590
files examples/dump_ecl.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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() {