From 77c1d89e2897cbac5237544c605e97ea8eb3d07a Mon Sep 17 00:00:00 2001 From: Jessica Black Date: Thu, 9 Nov 2023 16:25:57 -0800 Subject: [PATCH] Fix lints --- src/ext/command.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ext/command.rs b/src/ext/command.rs index d9c15894..613ca4a9 100644 --- a/src/ext/command.rs +++ b/src/ext/command.rs @@ -3,7 +3,6 @@ use std::{ ffi::{OsStr, OsString}, fmt::Display, - ops::Deref, path::PathBuf, process::{ExitStatus, Stdio}, }; @@ -729,7 +728,7 @@ where T: CommandDescriber, { fn describe(&self) -> Description { - self.deref().deref().describe() + (*self).describe() } } @@ -814,15 +813,15 @@ where T: OutputProvider, { fn stdout(&self) -> Vec { - self.deref().deref().stdout() + (*self).stdout() } fn stderr(&self) -> Vec { - self.deref().deref().stderr() + (*self).stderr() } fn status(&self) -> ExitStatus { - self.deref().deref().status() + (*self).status() } }