diff --git a/src/check/testables.rs b/src/check/testables.rs index e86c857..322b26d 100644 --- a/src/check/testables.rs +++ b/src/check/testables.rs @@ -1,5 +1,3 @@ -use crate::utils::log_failure; - fn ends_with_newline(source: String) -> Result<(), String> { if !source.ends_with('\n') { Err("source does not end with newline".into()) @@ -14,10 +12,7 @@ pub struct Rule { } impl Rule { - pub fn new<'a>( - name: impl ToString, - test: impl 'static + Fn(String) -> Result<(), String>, - ) -> Self { + pub fn new(name: impl ToString, test: impl 'static + Fn(String) -> Result<(), String>) -> Self { let name = name.to_string(); let test = Box::new(test); Self { name, test } diff --git a/src/tasks.rs b/src/tasks.rs index 92c9a92..1e9f56b 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -161,6 +161,7 @@ impl CmdTask { Self { command } } + #[allow(clippy::result_unit_err)] pub fn run(self) -> Result<(), ()> { Command::new("sh") .arg("-c")