Use new format strings.
This commit is contained in:
parent
a214206caf
commit
c0980f66c1
|
@ -471,7 +471,7 @@ pub trait PointLike {
|
||||||
} else {
|
} else {
|
||||||
self.direction(other).into()
|
self.direction(other).into()
|
||||||
};
|
};
|
||||||
tokens.push(format!("{} {} {}", direction, distance, tile_or_tiles));
|
tokens.push(format!("{direction} {distance} {tile_or_tiles}"));
|
||||||
}
|
}
|
||||||
tokens.join(" ")
|
tokens.join(" ")
|
||||||
}
|
}
|
||||||
|
|
|
@ -468,9 +468,9 @@ fn area_description(
|
||||||
};
|
};
|
||||||
if let Some(name) = name {
|
if let Some(name) = name {
|
||||||
if event.intersecting {
|
if event.intersecting {
|
||||||
log.push(format!("Entering {}.", name));
|
log.push(format!("Entering {name}."));
|
||||||
} else {
|
} else {
|
||||||
log.push(format!("Leaving {}.", name));
|
log.push(format!("Leaving {name}."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -390,7 +390,7 @@ fn log_visible(
|
||||||
let yaw = Angle::Radians(forward.y.atan2(forward.x));
|
let yaw = Angle::Radians(forward.y.atan2(forward.x));
|
||||||
let location =
|
let location =
|
||||||
viewer_coordinates.direction_and_distance(&viewed_coordinates, Some(yaw));
|
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 {
|
} else if let VisibilityChanged::Lost { viewed, .. } = event {
|
||||||
recently_lost.insert(*viewed, Timer::from_seconds(2., false));
|
recently_lost.insert(*viewed, Timer::from_seconds(2., false));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user