(var: &str, default: Duration)
| 2091 | return LeanIOResult::error_string( |
| 2092 | "rs_env_extract: no constant names given", |
| 2093 | ); |
| 2094 | } |
| 2095 | |
| 2096 | let bytes = match std::fs::read(&path) { |
| 2097 | Ok(bytes) => bytes, |
| 2098 | Err(e) => { |
| 2099 | return LeanIOResult::error_string(&format!( |
| 2100 | "rs_env_extract: failed to read {path}: {e}" |
| 2101 | )); |
no test coverage detected