Resolve more linter warnings
This commit is contained in:
@@ -11,7 +11,7 @@ pub fn encrypt(key: u16, Bytes(data): &Bytes) -> Bytes {
|
||||
// Write the function that does this for MT19937 using a 16-bit seed.
|
||||
|
||||
let mut mt = mt19937::MT19937::new();
|
||||
mt.seed(key as u32);
|
||||
mt.seed(key.into());
|
||||
let mut result: Vec<u8> = vec![];
|
||||
|
||||
for chunk in data.chunks(4) {
|
||||
|
||||
Reference in New Issue
Block a user