aboutsummaryrefslogtreecommitdiff
path: root/server/src/entity/tram.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-06-06 21:38:24 +0200
committermetamuffin <metamuffin@disroot.org>2025-06-06 21:38:24 +0200
commitf8dfbaa2869f40253ccd19ee3655b8dbd5390d8e (patch)
treed1ce15aa264a787c81ca996752e5c2736d21fb62 /server/src/entity/tram.rs
parent205d5f2ae8eaea03a78d3c027913c0fa44acceea (diff)
downloadhurrycurry-f8dfbaa2869f40253ccd19ee3655b8dbd5390d8e.tar
hurrycurry-f8dfbaa2869f40253ccd19ee3655b8dbd5390d8e.tar.bz2
hurrycurry-f8dfbaa2869f40253ccd19ee3655b8dbd5390d8e.tar.zst
manual clippy and other cleanup
Diffstat (limited to 'server/src/entity/tram.rs')
-rw-r--r--server/src/entity/tram.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/entity/tram.rs b/server/src/entity/tram.rs
index d1d1effa..06e151d7 100644
--- a/server/src/entity/tram.rs
+++ b/server/src/entity/tram.rs
@@ -43,7 +43,7 @@ impl Entity for Tram {
character: self.character,
class: PlayerClass::Tram,
id: Some(id),
- position: self.points.get(0).copied(),
+ position: self.points.first().copied(),
});
self.ids.push(id);
}