11use std:: io;
22
3- use gix_transport:: { client, Protocol } ;
3+ use crate :: transport:: client:: blocking_io:: ExtendedBufRead ;
4+ use crate :: transport:: { client:: MessageKind , Protocol } ;
45
56use crate :: fetch:: {
67 response,
@@ -10,7 +11,7 @@ use crate::fetch::{
1011
1112fn parse_v2_section < ' a , T > (
1213 line : & mut String ,
13- reader : & mut impl client :: ExtendedBufRead < ' a > ,
14+ reader : & mut impl ExtendedBufRead < ' a > ,
1415 res : & mut Vec < T > ,
1516 parse : impl Fn ( & str ) -> Result < T , response:: Error > ,
1617) -> Result < bool , response:: Error > {
@@ -20,7 +21,7 @@ fn parse_v2_section<'a, T>(
2021 line. clear ( ) ;
2122 }
2223 // End of message, or end of section?
23- Ok ( if reader. stopped_at ( ) == Some ( client :: MessageKind :: Delimiter ) {
24+ Ok ( if reader. stopped_at ( ) == Some ( MessageKind :: Delimiter ) {
2425 // try reading more sections
2526 reader. reset ( Protocol :: V2 ) ;
2627 false
@@ -44,7 +45,7 @@ impl Response {
4445 /// that `git` has to use to predict how many acks are supposed to be read. We also genuinely hope that this covers it all….
4546 pub fn from_line_reader < ' a > (
4647 version : Protocol ,
47- reader : & mut impl client :: ExtendedBufRead < ' a > ,
48+ reader : & mut impl ExtendedBufRead < ' a > ,
4849 client_expects_pack : bool ,
4950 wants_to_negotiate : bool ,
5051 ) -> Result < Response , response:: Error > {
@@ -71,7 +72,7 @@ impl Response {
7172 // maybe we saw a shallow flush packet, let's reset and retry
7273 debug_assert_eq ! (
7374 reader. stopped_at( ) ,
74- Some ( client :: MessageKind :: Flush ) ,
75+ Some ( MessageKind :: Flush ) ,
7576 "If this isn't a flush packet, we don't know what's going on"
7677 ) ;
7778 reader. readline_str ( & mut line) ?;
0 commit comments