relax lifetime requirements in handle_backend_command

This commit is contained in:
steven-omaha
2023-01-30 15:25:08 +01:00
parent 816eb14eff
commit dc382831c2
+2 -2
View File
@@ -40,8 +40,8 @@ impl ToDoPerBackend {
fn handle_backend_command<'a, F>(
&'a self,
func: F,
verb: &'static str,
verb_continuous: &'static str,
verb: &'_ str,
verb_continuous: &'_ str,
) -> Result<()>
where
F: Fn(&'a dyn Backend, &'a [Package]) -> Result<ExitStatus>,