diff options
author | CosmicHorror <CosmicHorrorDev@pm.me> | 2023-10-30 19:58:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 20:58:14 -0500 |
commit | 1ac5fbc5519352ec9be5bbb448f72c727c5b52cd (patch) | |
tree | cd22acca941e6e1f3fa3789652a16b0caa882b66 | |
parent | a88673b18e56cb056d8dab4f8c7bae60848b8915 (diff) |
Remove warning when using `--preview` on stdin input (#259)
-rw-r--r-- | src/input.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/input.rs b/src/input.rs index 500f0a7..a558b42 100644 --- a/src/input.rs +++ b/src/input.rs @@ -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::*; |