diff --git a/src/child_context.rs b/src/child_context.rs index 169e2fe..0026e5f 100644 --- a/src/child_context.rs +++ b/src/child_context.rs @@ -39,7 +39,7 @@ impl ChildContext { } /// Get a reference to the command which produced this child process. - pub fn command(&self) -> &(dyn CommandDisplay + Send + Sync) { + pub fn command(&self) -> &(dyn CommandDisplay + Send + Sync + 'static) { self.command.borrow() } }