-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
buf_redux
with BufReader
from std
`rustyline` depends on `buf_redux` for two calls to `get_len`, but these calls can be replaced with calls to `reader.buffer().len()` using APIs in `std` that have been available since Rust 1.37.0: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer `std::io::BufReader::buffer` does not cause any additional reads to occur and exposes the internal buffered and unread contents of the `BufReader`. Motivation for this commit is reducing dependencies.
- Loading branch information
Showing
2 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters