Fix minor warnings and typos (#726)
This commit is contained in:
parent
b13e8ef64d
commit
bf9f78994a
21
README.md
21
README.md
@ -9,13 +9,18 @@ see [Tested Terminals](#tested-terminals) for more info).
|
|||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
* [Features](#features)
|
- [Cross-platform Terminal Manipulation Library](#cross-platform-terminal-manipulation-library)
|
||||||
* [Tested Terminals](#tested-terminals)
|
- [Table of Contents](#table-of-contents)
|
||||||
* [Getting Started](#getting-started)
|
- [Features](#features)
|
||||||
* [Feature Flags](#feature-flags)
|
- [Tested Terminals](#tested-terminals)
|
||||||
* [Other Resources](#other-resources)
|
- [Getting Started](#getting-started)
|
||||||
* [Used By](#used-by)
|
- [Feature Flags](#feature-flags)
|
||||||
* [Contributing](#contributing)
|
- [Dependency Justification](#dependency-justification)
|
||||||
|
- [Other Resources](#other-resources)
|
||||||
|
- [Used By](#used-by)
|
||||||
|
- [Contributing](#contributing)
|
||||||
|
- [Authors](#authors)
|
||||||
|
- [License](#license)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@ -148,7 +153,7 @@ features = ["event-stream"]
|
|||||||
| `parking_lot` | locking `RwLock`s with a timeout, const mutexes. | always |
|
| `parking_lot` | locking `RwLock`s with a timeout, const mutexes. | always |
|
||||||
| `libc` | UNIX terminal_size/raw modes/set_title and several other low level 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 |
|
| `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 |
|
| `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 |
|
| `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 |
|
| `serde` | ***ser***ializing and ***de***serializing of events | only with `serde` feature flag |
|
||||||
|
@ -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<()> {
|
fn main() -> Result<()> {
|
||||||
|
@ -155,7 +155,7 @@ where
|
|||||||
{
|
{
|
||||||
test_color_values_matrix_16x16(w, "Color::Rgb red values", |col, row| Color::Rgb {
|
test_color_values_matrix_16x16(w, "Color::Rgb red values", |col, row| Color::Rgb {
|
||||||
r: (row * 16 + col) as u8,
|
r: (row * 16 + col) as u8,
|
||||||
g: 0 as u8,
|
g: 0_u8,
|
||||||
b: 0,
|
b: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -67,8 +67,7 @@ impl WinApiPoll {
|
|||||||
Err(io::Error::new(
|
Err(io::Error::new(
|
||||||
io::ErrorKind::Interrupted,
|
io::ErrorKind::Interrupted,
|
||||||
"Poll operation was woken up by `Waker::wake`",
|
"Poll operation was woken up by `Waker::wake`",
|
||||||
)
|
))
|
||||||
.into())
|
|
||||||
}
|
}
|
||||||
WAIT_TIMEOUT | WAIT_ABANDONED_0 => {
|
WAIT_TIMEOUT | WAIT_ABANDONED_0 => {
|
||||||
// timeout elapsed
|
// timeout elapsed
|
||||||
|
Loading…
Reference in New Issue
Block a user