summaryrefslogtreecommitdiffstats
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/input.rs b/src/input.rs
index 1e7aec2f..5b6a4e67 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -137,7 +137,11 @@ impl<'a> Input<'a> {
}
pub fn is_stdin(&self) -> bool {
- matches!(self.kind, InputKind::StdIn)
+ if let InputKind::StdIn = self.kind {
+ true
+ } else {
+ false
+ }
}
pub fn with_name(mut self, provided_name: Option<&OsStr>) -> Self {