##// END OF EJS Templates
rust-clippy: simplify `match` to `if let`...
Raphaël Gomès -
r52164:eab5b061 default
parent child Browse files
Show More
@@ -446,8 +446,7 b' pub fn run(invocation: &crate::CliInvoca'
446 };
446 };
447 let (narrow_matcher, narrow_warnings) = narrow::matcher(repo)?;
447 let (narrow_matcher, narrow_warnings) = narrow::matcher(repo)?;
448
448
449 match revpair {
449 if let Some((rev1, rev2)) = revpair {
450 Some((rev1, rev2)) => {
451 let mut ds_status = DirstateStatus::default();
450 let mut ds_status = DirstateStatus::default();
452 if list_copies {
451 if list_copies {
453 return Err(CommandError::unsupported(
452 return Err(CommandError::unsupported(
@@ -493,8 +492,6 b' pub fn run(invocation: &crate::CliInvoca'
493 output.output(display_states, ds_status)?;
492 output.output(display_states, ds_status)?;
494 return Ok(());
493 return Ok(());
495 }
494 }
496 None => (),
497 }
498
495
499 let (sparse_matcher, sparse_warnings) = sparse::matcher(repo)?;
496 let (sparse_matcher, sparse_warnings) = sparse::matcher(repo)?;
500 let matcher = match (repo.has_narrow(), repo.has_sparse()) {
497 let matcher = match (repo.has_narrow(), repo.has_sparse()) {
General Comments 0
You need to be logged in to leave comments. Login now