mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Use fully qualified sytnax for retain_mut (#10865)
This commit is contained in:
@@ -753,7 +753,7 @@ where
|
||||
slot: Slot,
|
||||
epoch_descriptor: &ViableEpochDescriptor<B::Hash, NumberFor<B>, Epoch>,
|
||||
) {
|
||||
self.slot_notification_sinks.lock().retain_mut(|sink| {
|
||||
RetainMut::retain_mut(&mut *self.slot_notification_sinks.lock(), |sink| {
|
||||
match sink.try_send((slot, epoch_descriptor.clone())) {
|
||||
Ok(()) => true,
|
||||
Err(e) =>
|
||||
|
||||
@@ -203,7 +203,7 @@ impl<B: ChainApi> ValidatedPool<B> {
|
||||
let imported = self.pool.write().import(tx)?;
|
||||
|
||||
if let base::Imported::Ready { ref hash, .. } = imported {
|
||||
self.import_notification_sinks.lock().retain_mut(|sink| {
|
||||
RetainMut::retain_mut(&mut *self.import_notification_sinks.lock(), |sink| {
|
||||
match sink.try_send(*hash) {
|
||||
Ok(()) => true,
|
||||
Err(e) =>
|
||||
|
||||
Reference in New Issue
Block a user