…into async-io, as usual.
Showing the changes to git-protocol/tests (1 of 12 files). Show all
Unified · Split
| @@ -12,13 +12,15 @@ fn id(hex: &str) -> git_hash::ObjectId { · 11 unmodified lines | ||
| 12 | 12 | |
| 13 | 13 | mod v1 { |
| 14 | 14 | mod from_line_reader { |
| 15 | − use crate::fetch::response::{id, mock_reader}; | |
| 15 | + use std::io::Read; | |
| 16 | + | |
| 16 | 17 | use git_protocol::fetch::{ |
| 17 | 18 | self, |
| 18 | 19 | response::{Acknowledgement, ShallowUpdate}, |
| 19 | 20 | }; |
| 20 | 21 | use git_transport::Protocol; |
| 21 | − use std::io::Read; | |
| 22 | + | |
| 23 | + use crate::fetch::response::{id, mock_reader}; | |
| 22 | 24 | |
| 23 | 25 | #[test] |
| 24 | 26 | fn clone() -> crate::Result { |
| @@ -104,12 +106,15 @@ mod v1 { · 79 unmodified lines | ||
| 104 | 106 | } |
| 105 | 107 | mod v2 { |
| 106 | 108 | mod from_line_reader { |
| 107 | − use crate::fetch::response::{id, mock_reader}; | |
| 108 | − use git_protocol::fetch::response::ShallowUpdate; | |
| 109 | − use git_protocol::fetch::{self, response::Acknowledgement}; | |
| 109 | + use std::{io, io::Read}; | |
| 110 | + | |
| 111 | + use git_protocol::fetch::{ | |
| 112 | + self, | |
| 113 | + response::{Acknowledgement, ShallowUpdate}, | |
| 114 | + }; | |
| 110 | 115 | use git_transport::Protocol; |
| 111 | − use std::io; | |
| 112 | − use std::io::Read; | |
| 116 | + | |
| 117 | + use crate::fetch::response::{id, mock_reader}; | |
| 113 | 118 | |
| 114 | 119 | #[test] |
| 115 | 120 | fn clone() -> crate::Result { |