mirror of
https://github.com/NinjaCheetah/rustii.git
synced 2026-03-17 06:47:49 -04:00
Applied a couple of Clippy lints
This commit is contained in:
@@ -289,6 +289,9 @@ impl Ticket {
|
||||
self.signature = [0; 256];
|
||||
let mut current_int: u16 = 0;
|
||||
let mut test_hash: [u8; 20] = [255; 20];
|
||||
|
||||
// We're using the "unknown2" field as a 16-bit integer and incrementing it to brute force
|
||||
// the hash that we need.
|
||||
while test_hash[0] != 0 {
|
||||
if current_int == 65535 { return Err(TicketError::CannotFakesign); }
|
||||
current_int += 1;
|
||||
|
||||
@@ -351,6 +351,9 @@ impl TMD {
|
||||
self.signature = [0; 256];
|
||||
let mut current_int: u16 = 0;
|
||||
let mut test_hash: [u8; 20] = [255; 20];
|
||||
|
||||
// We're using the unused "minor version" field of the TMD as a 16-bit integer and
|
||||
// incrementing it to brute force the hash that we need.
|
||||
while test_hash[0] != 0 {
|
||||
if current_int == 65535 { return Err(TMDError::CannotFakesign); }
|
||||
current_int += 1;
|
||||
|
||||
Reference in New Issue
Block a user