[ci skip] fmt

This commit is contained in:
Christien Rioux 2025-03-28 12:54:00 -04:00
parent bb17e7cee6
commit aed1006c95
4 changed files with 11 additions and 12 deletions

View File

@ -119,8 +119,8 @@ impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display
}
}
impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display + Clone>
fmt::Debug for NodeRefLock<'_, N>
impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display + Clone> fmt::Debug
for NodeRefLock<'_, N>
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("NodeRefLock").field("nr", &self.nr).finish()

View File

@ -122,8 +122,8 @@ impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display
}
}
impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display + Clone>
fmt::Debug for NodeRefLockMut<'_, N>
impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display + Clone> fmt::Debug
for NodeRefLockMut<'_, N>
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("NodeRefLockMut")

View File

@ -1337,12 +1337,12 @@ impl RoutingTableInner {
}
// reliable nodes come first, pessimistically treating our own node as unreliable
let ra = a_entry.as_ref().is_some_and(|x| {
x.with_inner(|x| x.check_unreliable(cur_ts).is_none())
});
let rb = b_entry.as_ref().is_some_and(|x| {
x.with_inner(|x| x.check_unreliable(cur_ts).is_none())
});
let ra = a_entry
.as_ref()
.is_some_and(|x| x.with_inner(|x| x.check_unreliable(cur_ts).is_none()));
let rb = b_entry
.as_ref()
.is_some_and(|x| x.with_inner(|x| x.check_unreliable(cur_ts).is_none()));
if ra != rb {
if ra {
return core::cmp::Ordering::Less;

View File

@ -97,8 +97,7 @@ impl SignedNodeInfo {
}
}
// Check our relay if we have one
self
.relay_info()
self.relay_info()
.map(|relay_ni| {
for did in relay_ni.dial_info_detail_list() {
match sequencing {