aboutsummaryrefslogtreecommitdiffstats
path: root/src/point.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/point.rs')
-rw-r--r--src/point.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/point.rs b/src/point.rs
index 18d3d5f..34cdb69 100644
--- a/src/point.rs
+++ b/src/point.rs
@@ -3,12 +3,12 @@ use crate::state::{MAX_SPEED, TAU};
const POINT_RADIUS: f64 = 0.01;
fn rand_color() -> String {
- format!(
- "rgb({} {} {})",
+ let [r, g, b] = [
fastrand::u8(0..255),
fastrand::u8(0..255),
- fastrand::u8(0..255)
- )
+ fastrand::u8(0..255),
+ ];
+ format!("rgb({r} {g} {b})",)
}
#[derive(Clone, Debug)]