From 9532abcaa64421352f063daa0ff5e33a8e341ed7 Mon Sep 17 00:00:00 2001 From: The Dax Date: Fri, 4 Jul 2025 10:46:50 -0400 Subject: [PATCH] Address "warning: you should consider adding a `Default` implementation for `ScramblerKeyGenerator`" --- src/world/scrambler.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/world/scrambler.rs b/src/world/scrambler.rs index 76b157e..7644dc0 100644 --- a/src/world/scrambler.rs +++ b/src/world/scrambler.rs @@ -15,6 +15,12 @@ pub struct ScramblerKeyGenerator { table_max: &'static [i32], } +impl Default for ScramblerKeyGenerator { + fn default() -> Self { + Self::new() + } +} + impl ScramblerKeyGenerator { pub fn new() -> Self { // Technically unsafe, but Unscrambler's tables should be correct anyway