From ebe23e18960d58a6861967bd7ae83e76ce168d51 Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Mon, 31 Oct 2022 12:32:01 -0500 Subject: [PATCH] does not pass --- src/common/minimal_eci_input.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/minimal_eci_input.rs b/src/common/minimal_eci_input.rs index 2e1337b..be9da18 100644 --- a/src/common/minimal_eci_input.rs +++ b/src/common/minimal_eci_input.rs @@ -230,7 +230,11 @@ impl MinimalECIInput { Self { bytes: bytes, - fnc1: fnc1.as_ref().unwrap().chars().nth(0).unwrap() as u16, + fnc1: if let Some(fnc1_exists) = fnc1 {//}.as_ref().unwrap().chars().nth(0).unwrap() as u16, + fnc1_exists.chars().nth(0).unwrap() as u16 + }else{ + 1000 + } } }