Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Nov 22, 2023
1 parent 66d4470 commit a6bb99f
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,16 @@ pub enum ConnectorVersion {

impl ConnectorVersion {
fn is_broader(&self, other: &ConnectorVersion) -> bool {
match (self, other) {
matches!(
(self, other),
(Self::SqlServer(None), Self::SqlServer(_))
| (Self::Postgres(None), Self::Postgres(_))
| (Self::MySql(None), Self::MySql(_))
| (Self::MongoDb(None), Self::MongoDb(_))
| (Self::Sqlite(None), Self::Sqlite(_))
| (Self::CockroachDb(None), Self::CockroachDb(_))
| (Self::Vitess(None), Self::Vitess(_)) => true,
_ => false,
}
| (Self::Postgres(None), Self::Postgres(_))
| (Self::MySql(None), Self::MySql(_))
| (Self::MongoDb(None), Self::MongoDb(_))
| (Self::Sqlite(None), Self::Sqlite(_))
| (Self::CockroachDb(None), Self::CockroachDb(_))
| (Self::Vitess(None), Self::Vitess(_))
)
}

fn matches_pattern(&self, pat: &ConnectorVersion) -> bool {
Expand Down

0 comments on commit a6bb99f

Please sign in to comment.