History

[clone] refactor

Sebastian Thiel committed 6 years ago

Commit ded46fd1 parent 46e00551 file · +3 −3Browse files

Showing the changes to git-protocol/src (1 of 1 file). Show all

Unified · Split

git-protocol/src/fetch/mod.rs+3−3
@@ -185,7 +185,7 @@ where · 184 unmodified lines
185 let mut arguments = Arguments::new(protocol_version, fetch_features)?;185 let mut arguments = Arguments::new(protocol_version, fetch_features)?;
186 let mut previous_response = None::<Response>;186 let mut previous_response = None::<Response>;
187 let mut round = 1;187 let mut round = 1;
188 loop {188 'negotiation: loop {
189 progress.step();189 progress.step();
190 progress.set_name(format!("negotiate (round {})", round));190 progress.set_name(format!("negotiate (round {})", round));
191 round += 1;191 round += 1;
@@ -202,10 +202,10 @@ where · 10 unmodified lines
202 setup_remote_progress(&mut progress, &mut reader);202 setup_remote_progress(&mut progress, &mut reader);
203 }203 }
204 delegate.receive_pack(reader, progress, &parsed_refs, &response)?;204 delegate.receive_pack(reader, progress, &parsed_refs, &response)?;
205 break;205 break 'negotiation;
206 } else {206 } else {
207 match action {207 match action {
208 Action::Close => break,208 Action::Close => break 'negotiation,
209 Action::Continue => Some(response),209 Action::Continue => Some(response),
210 }210 }
211 }211 }