Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace buf_redux with BufReader from std #613

Merged
merged 1 commit into from
Apr 10, 2022
Merged

Replace buf_redux with BufReader from std #613

merged 1 commit into from
Apr 10, 2022

Commits on Apr 10, 2022

  1. 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.
    lopopolo committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    eb2035b View commit details
    Browse the repository at this point in the history