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:
parent
4cae9a649a
commit
9532abcaa6
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue