repline: Clippy lints unbuffered readers now

This commit is contained in:
John 2025-03-14 06:09:00 -05:00
parent c988193049
commit 68e676eda4

View File

@ -28,6 +28,7 @@ impl<'a> Repline<'a, std::io::Stdin> {
impl<'a, R: Read> Repline<'a, R> {
/// Constructs a [Repline] with the given [Reader](Read), color, begin, and again prompts.
pub fn with_input(input: R, color: &'a str, begin: &'a str, again: &'a str) -> Self {
#[allow(clippy::unbuffered_bytes)]
Self {
input: Chars(Flatten(input.bytes())),
history: Default::default(),