Skip to content

Commit 48ab234

Browse files
alexcpu
authored andcommitted
Fixed warnings from rust nightly
1 parent d7b1215 commit 48ab234

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/pemfile.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,7 @@ fn read_one_impl(
225225
// Ported from https://github.com/rust-lang/rust/blob/91cfcb021935853caa06698b759c293c09d1e96a/library/std/src/io/mod.rs#L1990 and
226226
// modified to look for our accepted newlines.
227227
#[cfg(feature = "std")]
228-
fn read_until_newline<R: io::BufRead + ?Sized>(
229-
r: &mut R,
230-
buf: &mut Vec<u8>,
231-
) -> std::io::Result<usize> {
228+
fn read_until_newline<R: io::BufRead + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> io::Result<usize> {
232229
let mut read = 0;
233230
loop {
234231
let (done, used) = {

0 commit comments

Comments
 (0)