Improve match statement (#8817)

This commit is contained in:
Ayush Mishra
2021-05-16 01:13:58 +05:30
committed by GitHub
parent eaccde2ddc
commit c28ab1fcac
3 changed files with 5 additions and 20 deletions
+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 { .. })
}
}