diff --git a/src/binary.rs b/src/binary.rs index 8ed52f3..93167f0 100644 --- a/src/binary.rs +++ b/src/binary.rs @@ -1,3 +1,4 @@ +#![allow(dead_code)] /** * Pythons bit operations are trash, so I made a rust lib for that. */ diff --git a/src/modular_exponentiation.rs b/src/modular_exponentiation.rs index b46cd47..915c819 100644 --- a/src/modular_exponentiation.rs +++ b/src/modular_exponentiation.rs @@ -1,6 +1,6 @@ -use std::{str::FromStr, array}; +#![allow(dead_code)] -use num_bigint::{BigInt, BigUint}; +use num_bigint::BigInt; /// works, but is forbidden for class pub fn calc_exp_in_field_lib( @@ -55,7 +55,6 @@ fn bytes_to_bools(bytes: &Vec) -> Vec { } fn dump_bin(bytes: &Vec) { - let mut total: Vec = Vec::new(); for byte in bytes.iter() { println!("{:#08b}\t| {:#02x}", byte, byte); }