Skip to content

Clippy fixes for 1.87 #1139

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bjorn3
Copy link
Collaborator

@bjorn3 bjorn3 commented May 23, 2025

No description provided.

@@ -86,6 +86,7 @@ fn read_unbuffered(source: &mut dyn io::Read) -> io::Result<PamBuffer> {
let mut pwd_iter = password.iter_mut();

const EOL: u8 = 0x0A;
#[allow(clippy::unbuffered_bytes)]
let input = source.bytes().take_while(|x| x.as_ref().ok() != Some(&EOL));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using BufReader as suggested by clippy would change behavior.

@bjorn3 bjorn3 requested a review from squell May 23, 2025 12:09
@bjorn3
Copy link
Collaborator Author

bjorn3 commented May 23, 2025

CI fails as it still uses rustc 1.86.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant