diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-01-11 19:07:22 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-01-11 19:07:22 -0600 |
commit | f96e6f042fa8ab0e61e7c10739eafd1155a32eff (patch) | |
tree | a10c41ed08cdf54c3226149605eb962c2bf3202c /src/project/path.rs | |
parent | 14b367de207df7cb57bb54512b8963ef7d3221fa (diff) |
revert(preview)!: remove preview feat and unused deps
Diffstat (limited to 'src/project/path.rs')
-rw-r--r-- | src/project/path.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/project/path.rs b/src/project/path.rs index 09eb557..fad746c 100644 --- a/src/project/path.rs +++ b/src/project/path.rs @@ -48,22 +48,3 @@ impl AsRef<Duration> for PathProject { &self.1 } } - -#[cfg(feature = "preview")] -impl super::Preview for PathProject { - type Error = std::io::Error; - - fn preview(&self) -> Result<(), Self::Error> { - use std::io::Write; - use std::process::{Command, Stdio}; - - let output = Command::new("ls") - .arg("-l") - .arg("-a") - .arg(&self.0) - .stdout(Stdio::piped()) - .output()?; - - std::io::stdout().write_all(&output.stdout) - } -} |