diff options
author | sharkdp <davidpeter@web.de> | 2020-11-24 21:01:14 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-11-24 21:40:11 +0100 |
commit | a6810e3353db8536015b830b28e45e5e0167fdac (patch) | |
tree | b1c24c9cd61c55774d0a8e3c418c90ef055b8182 /src/input.rs | |
parent | 591eba66a3af1c211a09eefd17cbeb819b0a131f (diff) |
Revert "Add io cycle detection with clircle"
This reverts commit aa2ae19dfd505ef08a8ebc555d5fb24b0bb97c8e.
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/input.rs b/src/input.rs index 5b6a4e67..5d8493c0 100644 --- a/src/input.rs +++ b/src/input.rs @@ -1,8 +1,6 @@ -use std::convert::TryFrom; use std::ffi::{OsStr, OsString}; use std::fs::File; use std::io::{self, BufRead, BufReader, Read}; -use std::path::Path; use content_inspector::{self, ContentType}; @@ -193,18 +191,6 @@ impl<'a> Input<'a> { } } -impl TryFrom<&'_ Input<'_>> for clircle::Identifier { - type Error = (); - - fn try_from(input: &Input) -> std::result::Result<clircle::Identifier, ()> { - match input.kind { - InputKind::OrdinaryFile(ref path) => Self::try_from(Path::new(path)).map_err(|_| ()), - InputKind::StdIn => Self::try_from(clircle::Stdio::Stdin).map_err(|_| ()), - InputKind::CustomReader(_) => Err(()), - } - } -} - pub(crate) struct InputReader<'a> { inner: Box<dyn BufRead + 'a>, pub(crate) first_line: Vec<u8>, |