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	Mon Jan 04 21:14:02 2021 +0100
+++ b/examples/dump_ecl.rs	Tue Jan 05 01:14:52 2021 +0100
@@ -33,7 +33,7 @@
     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() {