Skip to content

Commit e1f507b

Browse files
sanityiduartgomez
authored andcommitted
style(router): run rustfmt
1 parent e243c8d commit e1f507b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/core/src/router/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ impl Router {
2424
/// remote has published a location. Treat them as midway around the ring so
2525
/// we still consider them instead of dropping the candidate set entirely.
2626
#[inline]
27-
fn peer_distance_or_default(
28-
peer: &PeerKeyLocation,
29-
target_location: &Location,
30-
) -> Distance {
27+
fn peer_distance_or_default(peer: &PeerKeyLocation, target_location: &Location) -> Distance {
3128
peer.location
3229
.map(|loc| target_location.distance(loc))
3330
.unwrap_or_else(|| Distance::new(0.5))

0 commit comments

Comments
 (0)