Skip to content

Commit 4ac82d3

Browse files
committed
fmt
1 parent f6e93c4 commit 4ac82d3

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/ip2location/db.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,7 @@ impl LocationDB {
188188
if (self.db_year <= 20 && self.product_code == 0) || self.product_code == 1 {
189189
Ok(())
190190
} else {
191-
Err(Error::InvalidBinDatabase(
192-
self.db_year,
193-
self.product_code,
194-
))
191+
Err(Error::InvalidBinDatabase(self.db_year, self.product_code))
195192
}
196193
}
197194

src/ip2proxy/db.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,7 @@ impl ProxyDB {
176176
if (self.db_year <= 20 && self.product_code == 0) || self.product_code == 2 {
177177
Ok(())
178178
} else {
179-
Err(Error::InvalidBinDatabase(
180-
self.db_year,
181-
self.product_code,
182-
))
179+
Err(Error::InvalidBinDatabase(self.db_year, self.product_code))
183180
}
184181
}
185182

0 commit comments

Comments
 (0)