From f3201c7758e59ca4ca7ca607f3d9098120719aec Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Tue, 2 May 2023 15:19:29 +0200 Subject: [PATCH] fixed warnings --- src/binary.rs | 1 + src/modular_exponentiation.rs | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) 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); }