diff options
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input.rs b/src/input.rs index 4ecd899..c6ea52d 100644 --- a/src/input.rs +++ b/src/input.rs @@ -223,12 +223,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()? { |