Function
env_duration_ms_optional
(var: &str, default: Duration)
Source from the content-addressed store, hash-verified
| 2098 | Err(e) => { |
| 2099 | return LeanIOResult::error_string(&format!( |
| 2100 | "rs_env_extract: failed to read {path}: {e}" |
| 2101 | )); |
| 2102 | }, |
| 2103 | }; |
| 2104 | let mut slice: &[u8] = &bytes; |
| 2105 | let full = match IxonEnv::get(&mut slice) { |
| 2106 | Ok(env) => env, |
| 2107 | Err(e) => { |
| 2108 | return LeanIOResult::error_string(&format!( |
| 2109 | "rs_env_extract: failed to deserialize {path}: {e}" |
Tested by
no test coverage detected