mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 14:41:11 +00:00
Improve match statement (#8817)
This commit is contained in:
@@ -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 { .. })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user