remove compilation warnings
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
use rand::prelude::*;
|
|
||||||
use tokio::time::sleep;
|
use tokio::time::sleep;
|
||||||
|
|
||||||
static CHARSET: [&str; 221] = [
|
static CHARSET: [&str; 221] = [
|
||||||
@@ -103,7 +102,6 @@ impl Cipher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn random_unmask(&mut self, num: usize) -> bool {
|
fn random_unmask(&mut self, num: usize) -> bool {
|
||||||
let mut rng = rand::rng();
|
|
||||||
let mut idx: Vec<usize> = self
|
let mut idx: Vec<usize> = self
|
||||||
.mask
|
.mask
|
||||||
.iter()
|
.iter()
|
||||||
|
|||||||
Reference in New Issue
Block a user