Skip to content

Commit 3808835

Browse files
committed
remove unused method and fix match value
1 parent 53660cd commit 3808835

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

crates/prettytty/src/conn.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,6 @@ pub struct Input<'a> {
311311
}
312312

313313
impl<'a> Input<'a> {
314-
/// Extract inner scanner.
315-
pub(crate) fn into_inner(self) -> MutexGuard<'a, Scanner<Box<dyn Read + Send>>> {
316-
self.scanner
317-
}
318-
319314
/// Determine whether the input has bytes buffered.
320315
#[must_use = "the only reason to invoke method is to access the returned value"]
321316
pub fn is_readable(&self) -> bool {

crates/prettytty/src/sys/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl RawConfig {
244244
};
245245
}
246246

247-
match group {
247+
match *group {
248248
ModeGroup::Input => {
249249
for (label, mask) in [
250250
("ENABLE_ECHO_INPUT", Console::ENABLE_ECHO_INPUT),

0 commit comments

Comments
 (0)