diff options
author | metamuffin <metamuffin@disroot.org> | 2025-10-06 23:03:32 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-10-06 23:03:40 +0200 |
commit | 176e6bc6c4c29bea3be2aceca99743b997c76c97 (patch) | |
tree | 1161e7a966843324756340da4b6452492902fa07 /server/src/entity/customers.rs | |
parent | ea86b11b682500160f37b35ea8f06b081cd05036 (diff) | |
download | hurrycurry-176e6bc6c4c29bea3be2aceca99743b997c76c97.tar hurrycurry-176e6bc6c4c29bea3be2aceca99743b997c76c97.tar.bz2 hurrycurry-176e6bc6c4c29bea3be2aceca99743b997c76c97.tar.zst |
Move data code to own crate + general data refactor
Diffstat (limited to 'server/src/entity/customers.rs')
-rw-r--r-- | server/src/entity/customers.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/entity/customers.rs b/server/src/entity/customers.rs index e3a23830..22522e4e 100644 --- a/server/src/entity/customers.rs +++ b/server/src/entity/customers.rs @@ -29,13 +29,13 @@ pub struct Customers { } impl Customers { - pub fn new(scaling_factor: f32) -> Result<Self> { - Ok(Self { + pub fn new(scaling_factor: f32) -> Self { + Self { customers: Default::default(), spawn_cooldown: 0., chair_count: None, scaling_factor, - }) + } } } |