diff options
Diffstat (limited to 'src/blocking/input.rs')
-rw-r--r-- | src/blocking/input.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blocking/input.rs b/src/blocking/input.rs index 771bed4..cb9edab 100644 --- a/src/blocking/input.rs +++ b/src/blocking/input.rs @@ -209,12 +209,12 @@ impl Input { if self.parse_single { self.read_single_key() } else { - if let Some(s) = self.try_read_string()? { - return Ok(Some(s)); + if let Some(key) = self.try_read_string()? { + return Ok(Some(key)); } - if let Some(s) = self.try_read_bytes()? { - return Ok(Some(s)); + if let Some(key) = self.try_read_bytes()? { + return Ok(Some(key)); } if let Some(key) = self.read_single_key()? { |