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
185185 let mut arguments = Arguments::new(protocol_version, fetch_features)?;
186186 let mut previous_response = None::<Response>;
187187 let mut round = 1;
188− loop {
188+ 'negotiation: loop {
189189 progress.step();
190190 progress.set_name(format!("negotiate (round {})", round));
191191 round += 1;
@@ -202,10 +202,10 @@ where · 10 unmodified lines
202202 setup_remote_progress(&mut progress, &mut reader);
203203 }
204204 delegate.receive_pack(reader, progress, &parsed_refs, &response)?;
205− break;
205+ break 'negotiation;
206206 } else {
207207 match action {
208− Action::Close => break,
208+ Action::Close => break 'negotiation,
209209 Action::Continue => Some(response),
210210 }
211211 }