Skip to content

Commit

Permalink
Fix minor warnings and typos (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blatko1 committed Dec 4, 2022
1 parent b13e8ef commit bf9f789
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
23 changes: 14 additions & 9 deletions README.md
Expand Up @@ -9,13 +9,18 @@ see [Tested Terminals](#tested-terminals) for more info).

## Table of Contents

* [Features](#features)
* [Tested Terminals](#tested-terminals)
* [Getting Started](#getting-started)
* [Feature Flags](#feature-flags)
* [Other Resources](#other-resources)
* [Used By](#used-by)
* [Contributing](#contributing)
- [Cross-platform Terminal Manipulation Library](#cross-platform-terminal-manipulation-library)
- [Table of Contents](#table-of-contents)
- [Features](#features)
- [Tested Terminals](#tested-terminals)
- [Getting Started](#getting-started)
- [Feature Flags](#feature-flags)
- [Dependency Justification](#dependency-justification)
- [Other Resources](#other-resources)
- [Used By](#used-by)
- [Contributing](#contributing)
- [Authors](#authors)
- [License](#license)

## Features

Expand Down Expand Up @@ -146,9 +151,9 @@ features = ["event-stream"]
|:---------------|:---------------------------------------------------------------------------------|:--------------------------------------|
| `bitflags` | `KeyModifiers`, those are differ based on input. | always |
| `parking_lot` | locking `RwLock`s with a timeout, const mutexes. | always |
| `libc` | UNIX terminal_size/raw modes/set_title and several other lowlevel functionality. | UNIX only |
| `libc` | UNIX terminal_size/raw modes/set_title and several other low level functionality. | UNIX only |
| `Mio` | event readiness polling, waking up poller | UNIX only |
| `signal-hook` | signalhook is used to handle terminal resize SIGNAL with Mio. | UNIX only |
| `signal-hook` | signal-hook is used to handle terminal resize SIGNAL with Mio. | UNIX only |
| `winapi` | Used for low-level windows system calls which ANSI codes can't replace | windows only |
| `futures-core` | For async stream of events | only with `event-stream` feature flag |
| `serde` | ***ser***ializing and ***de***serializing of events | only with `serde` feature flag |
Expand Down
2 changes: 1 addition & 1 deletion examples/event-read.rs
Expand Up @@ -60,7 +60,7 @@ fn flush_resize_events(first_resize: (u16, u16)) -> ((u16, u16), (u16, u16)) {
}
}

return (first_resize, last_resize);
(first_resize, last_resize)
}

fn main() -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion examples/interactive-demo/src/test/color.rs
Expand Up @@ -155,7 +155,7 @@ where
{
test_color_values_matrix_16x16(w, "Color::Rgb red values", |col, row| Color::Rgb {
r: (row * 16 + col) as u8,
g: 0 as u8,
g: 0_u8,
b: 0,
})
}
Expand Down
3 changes: 1 addition & 2 deletions src/event/sys/windows/poll.rs
Expand Up @@ -67,8 +67,7 @@ impl WinApiPoll {
Err(io::Error::new(
io::ErrorKind::Interrupted,
"Poll operation was woken up by `Waker::wake`",
)
.into())
))
}
WAIT_TIMEOUT | WAIT_ABANDONED_0 => {
// timeout elapsed
Expand Down

0 comments on commit bf9f789

Please sign in to comment.