Skip to content

Commit

Permalink
Fixed warnings from rust nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored and cpu committed Apr 6, 2024
1 parent d7b1215 commit 48ab234
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pemfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,7 @@ fn read_one_impl(
// Ported from https://github.com/rust-lang/rust/blob/91cfcb021935853caa06698b759c293c09d1e96a/library/std/src/io/mod.rs#L1990 and
// modified to look for our accepted newlines.
#[cfg(feature = "std")]
fn read_until_newline<R: io::BufRead + ?Sized>(
r: &mut R,
buf: &mut Vec<u8>,
) -> std::io::Result<usize> {
fn read_until_newline<R: io::BufRead + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> io::Result<usize> {
let mut read = 0;
loop {
let (done, used) = {
Expand Down

0 comments on commit 48ab234

Please sign in to comment.