relax lifetime requirements in handle_backend_command

This commit is contained in:
Dr. Matthias Ratajczak
2023-01-30 15:25:08 +01:00
parent d710d19cdc
commit 5f08ed271e
+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>,