diff --git a/src/core.rs b/src/core.rs index 35e02a6..9cb07a8 100644 --- a/src/core.rs +++ b/src/core.rs @@ -471,7 +471,7 @@ pub trait PointLike { } else { self.direction(other).into() }; - tokens.push(format!("{} {} {}", direction, distance, tile_or_tiles)); + tokens.push(format!("{direction} {distance} {tile_or_tiles}")); } tokens.join(" ") } diff --git a/src/map.rs b/src/map.rs index 38a2a0c..db9d1e5 100644 --- a/src/map.rs +++ b/src/map.rs @@ -468,9 +468,9 @@ fn area_description( }; if let Some(name) = name { if event.intersecting { - log.push(format!("Entering {}.", name)); + log.push(format!("Entering {name}.")); } else { - log.push(format!("Leaving {}.", name)); + log.push(format!("Leaving {name}.")); } } } diff --git a/src/visibility.rs b/src/visibility.rs index 3ba3145..0d08232 100644 --- a/src/visibility.rs +++ b/src/visibility.rs @@ -390,7 +390,7 @@ fn log_visible( let yaw = Angle::Radians(forward.y.atan2(forward.x)); let location = viewer_coordinates.direction_and_distance(&viewed_coordinates, Some(yaw)); - log.push(format!("{}: {}", **name, location)); + log.push(format!("{}: {location}", **name)); } } else if let VisibilityChanged::Lost { viewed, .. } = event { recently_lost.insert(*viewed, Timer::from_seconds(2., false));