diff options
Diffstat (limited to 'src/controller.rs')
-rw-r--r-- | src/controller.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/controller.rs b/src/controller.rs index 2ccd6dfb..babea0c9 100644 --- a/src/controller.rs +++ b/src/controller.rs @@ -13,7 +13,6 @@ use crate::output::OutputType; #[cfg(feature = "paging")] use crate::paging::PagingMode; use crate::printer::{InteractivePrinter, Printer, SimplePrinter}; -use std::convert::TryFrom; pub struct Controller<'a> { config: &'a Config<'a>, @@ -67,14 +66,6 @@ impl<'b> Controller<'b> { } let attached_to_pager = output_type.is_pager(); - let rw_cycle_detected = !attached_to_pager && { - let identifiers: Vec<_> = inputs - .iter() - .flat_map(clircle::Identifier::try_from) - .collect(); - clircle::stdout_among_inputs(&identifiers) - }; - let writer = output_type.handle()?; let mut no_errors: bool = true; @@ -87,11 +78,6 @@ impl<'b> Controller<'b> { } }; - if rw_cycle_detected { - print_error(&"The output file is also an input!".into(), writer); - return Ok(false); - } - for (index, input) in inputs.into_iter().enumerate() { match input.open(io::stdin().lock()) { Err(error) => { |