diff --git a/shuttle/src/command.rs b/shuttle/src/command.rs index 38b7c2408..30e3452bd 100644 --- a/shuttle/src/command.rs +++ b/shuttle/src/command.rs @@ -263,7 +263,7 @@ fn spawn(spec: &mut Spec) -> Result { cmd.process_group(0); cmd.spawn() - .with_context(|| format!("spawn {:?}", &spec.program)) + .with_context(|| format!("spawn {:?}", spec.program)) } // resolve the supplementary group list up front so the pre_exec hook never has @@ -319,7 +319,7 @@ pub fn spawn_pty(spec: Spec, rows: u16, cols: u16) -> Result<(OwnedReadPty, Owne // have exited. let child = cmd .spawn(pts) - .with_context(|| format!("spawn pty shell {:?}", &spec.program))?; + .with_context(|| format!("spawn pty shell {:?}", spec.program))?; let (reader, writer) = pty.into_split(); Ok((reader, writer, child))