diff options
-rw-r--r-- | src/blocking/input.rs | 8 | ||||
-rw-r--r-- | src/input.rs | 8 |
2 files changed, 8 insertions, 8 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()? { 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()? { |