From 1ac5fbc5519352ec9be5bbb448f72c727c5b52cd Mon Sep 17 00:00:00 2001 From: CosmicHorror Date: Mon, 30 Oct 2023 19:58:14 -0600 Subject: Remove warning when using `--preview` on stdin input (#259) --- src/input.rs | 5 +---- 1 file changed, 1 insertion(+), 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::*; -- cgit v1.2.3