diff --git a/implants/lib/eldritch/src/file/read_impl.rs b/implants/lib/eldritch/src/file/read_impl.rs index aae9b1217..6e8673eaa 100644 --- a/implants/lib/eldritch/src/file/read_impl.rs +++ b/implants/lib/eldritch/src/file/read_impl.rs @@ -1,17 +1,7 @@ -use anyhow::{Context, Result}; +use anyhow::Result; use glob::{glob, GlobError}; use std::{fs, path::PathBuf}; -/* - if !entry_path.exists() { - return Err(anyhow::anyhow!( - "file.read: pattern {} could not find path {}", - path, - entry_path.to_str().context("Failed to convert to str")? - )); - } -*/ - pub fn read(path: String) -> Result { let mut res: String = String::from(""); let glob_res = glob(&path)?.collect::>>(); diff --git a/implants/lib/eldritch/src/runtime/eval.rs b/implants/lib/eldritch/src/runtime/eval.rs index ae144d2db..912dd5970 100644 --- a/implants/lib/eldritch/src/runtime/eval.rs +++ b/implants/lib/eldritch/src/runtime/eval.rs @@ -146,7 +146,7 @@ pub struct Runtime { #[starlark_module] fn error_handler(builder: &mut GlobalsBuilder) { #[allow(unused_variables)] - fn eprint(starlark_eval: &mut Evaluator<'v, '_>, message: String) -> anyhow::Result { + fn eprint(starlark_eval: &mut Evaluator<'_, '_>, message: String) -> anyhow::Result { let env = crate::runtime::Environment::from_extra(starlark_eval.extra)?; eprint_impl::eprint(env, message)?; Ok(NoneType {})