mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-30 15:39:49 +00:00
Improve match statement (#8817)
This commit is contained in:
1 parent
eaccde2ddc
commit
c28ab1fcac
3 files changed
+5
-20
No files matched your search
@@ -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