##// 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 447 let (narrow_matcher, narrow_warnings) = narrow::matcher(repo)?;
448 448
449 match revpair {
450 Some((rev1, rev2)) => {
449 if let Some((rev1, rev2)) = revpair {
451 450 let mut ds_status = DirstateStatus::default();
452 451 if list_copies {
453 452 return Err(CommandError::unsupported(
@@ -493,8 +492,6 b' pub fn run(invocation: &crate::CliInvoca'
493 492 output.output(display_states, ds_status)?;
494 493 return Ok(());
495 494 }
496 None => (),
497 }
498 495
499 496 let (sparse_matcher, sparse_warnings) = sparse::matcher(repo)?;
500 497 let matcher = match (repo.has_narrow(), repo.has_sparse()) {
General Comments 0
You need to be logged in to leave comments. Login now