Improve match statement (#8817)

This commit is contained in:
Ayush Mishra authored and GitHub committed 2021-05-15 21:43:58 +02:00
1 parent eaccde2ddc
commit c28ab1fcac
3 files changed
+5 -20

No files matched your search

+1 -4
View File
@@ -335,10 +335,7 @@ impl DatabaseSettingsSrc {
}
/// Check if database supports internal ref counting for state data.
pub fn supports_ref_counting(&self) -> bool {
match self {
DatabaseSettingsSrc::ParityDb { .. } => true,
_ => false,
}
matches!(self, DatabaseSettingsSrc::ParityDb { .. })
}
}