Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Aug 19, 2020
1 parent a89a443 commit 25cdbec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions git-packetline/src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use crate::{
};
use crate::{PacketLine, RemoteProgress};
use bstr::ByteSlice;
use git_features::progress;
use git_features::progress::Progress;
use git_features::{progress, progress::Progress};
use std::io;

/// Read pack lines one after another, without consuming more than needed from the underlying
Expand Down Expand Up @@ -79,9 +78,11 @@ where
}
}

type ProgressAndParser<P> = (P, fn(&[u8]) -> Option<RemoteProgress>);

pub struct ReadWithProgressOptional<'a, T, P> {
parent: &'a mut Reader<T>,
progress_and_parse: Option<(P, fn(&[u8]) -> Option<RemoteProgress>)>,
progress_and_parse: Option<ProgressAndParser<P>>,
buf: Vec<u8>,
pos: usize,
cap: usize,
Expand Down

0 comments on commit 25cdbec

Please sign in to comment.