Fix clippy option_as_ref_deref error in scabard
Fix following warning:
called `.as_ref().map(|b| &**b)` on an Option value.
This can be done more directly by calling
`self.network_sender.as_deref()` instead
@@ -68,7 +68,7 @@ impl ScabbardShared {
}
pub fn network_sender(&self) -> Option<&dyn ServiceNetworkSender> {
- self.network_sender.as_ref().map(|b| &**b)
+ self.network_sender.as_deref()
}
pub fn set_network_sender(&mut self, sender: Box<dyn ServiceNetworkSender>) {
