Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
byronwasti committed Nov 17, 2020
1 parent 138b2fa commit 7fec9c3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/plan_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,7 @@ mod tests {
.set_strict(true)
.up();
assert!(plan.is_err());
let is_correct_error = match plan.err().unwrap() {
Error::DirtyMigrations => true,
_ => false,
};
let is_correct_error = matches!(plan.err().unwrap(), Error::DirtyMigrations);
assert!(is_correct_error);
}

Expand Down Expand Up @@ -463,10 +460,7 @@ mod tests {
.count(Some(2))
.redo();
assert!(plan.is_err());
let is_correct_err = match plan.err().unwrap() {
Error::DivergentMigration => true,
_ => false,
};
let is_correct_err = matches!(plan.err().unwrap(), Error::DivergentMigration);
assert!(is_correct_err);
}

Expand Down

0 comments on commit 7fec9c3

Please # to comment.