Skip to content

Commit

Permalink
remove unused method and fix match value
Browse files Browse the repository at this point in the history
  • Loading branch information
apparebit committed Feb 20, 2025
1 parent 53660cd commit 3808835
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions crates/prettytty/src/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,6 @@ pub struct Input<'a> {
}

impl<'a> Input<'a> {
/// Extract inner scanner.
pub(crate) fn into_inner(self) -> MutexGuard<'a, Scanner<Box<dyn Read + Send>>> {
self.scanner
}

/// Determine whether the input has bytes buffered.
#[must_use = "the only reason to invoke method is to access the returned value"]
pub fn is_readable(&self) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion crates/prettytty/src/sys/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl RawConfig {
};
}

match group {
match *group {
ModeGroup::Input => {
for (label, mask) in [
("ENABLE_ECHO_INPUT", Console::ENABLE_ECHO_INPUT),
Expand Down

0 comments on commit 3808835

Please sign in to comment.