1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-09 15:37:45 +00:00

Address "warning: you should consider adding a Default implementation for ScramblerKeyGenerator"

This commit is contained in:
The Dax 2025-07-04 10:46:50 -04:00 committed by Joshua Goins
parent 4cae9a649a
commit 9532abcaa6

View file

@ -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