mirror of
https://github.com/chmln/sd
synced 2024-11-22 03:03:03 +00:00
Remove warning when using --preview
on stdin input (#259)
This commit is contained in:
parent
a88673b18e
commit
1ac5fbc551
1 changed files with 1 additions and 4 deletions
|
@ -58,10 +58,7 @@ impl App {
|
|||
let is_tty = std::io::stdout().is_terminal();
|
||||
|
||||
match (&self.source, preview) {
|
||||
(Source::Stdin, true) => {
|
||||
eprintln!("WARN: `--preview` flag is redundant");
|
||||
self.stdin_replace(is_tty)
|
||||
}
|
||||
(Source::Stdin, true) => self.stdin_replace(is_tty),
|
||||
(Source::Stdin, false) => self.stdin_replace(is_tty),
|
||||
(Source::Files(paths), false) => {
|
||||
use rayon::prelude::*;
|
||||
|
|
Loading…
Reference in a new issue