Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Prevent some lints from being allowed (0xPolygonZero#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare authored Jan 2, 2024
1 parent 6cf4df7 commit f46cf4e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
4 changes: 3 additions & 1 deletion evm/src/cpu/kernel/tests/blake2_f.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use crate::cpu::kernel::interpreter::{
};
use crate::memory::segments::Segment::KernelGeneral;

type ConvertedBlakeInputs = (u32, [u64; 8], [u64; 16], u64, u64, bool);

fn reverse_bytes_u64(input: u64) -> u64 {
let mut result = 0;
for i in 0..8 {
Expand All @@ -13,7 +15,7 @@ fn reverse_bytes_u64(input: u64) -> u64 {
result
}

fn convert_input(input: &str) -> Result<(u32, [u64; 8], [u64; 16], u64, u64, bool)> {
fn convert_input(input: &str) -> Result<ConvertedBlakeInputs> {
let rounds = u32::from_str_radix(&input[..8], 16).unwrap();

let mut h = [0u64; 8];
Expand Down
2 changes: 0 additions & 2 deletions evm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#![allow(incomplete_features)]
#![allow(clippy::needless_range_loop)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::type_complexity)]
#![allow(clippy::field_reassign_with_default)]
#![allow(unused)]
#![feature(let_chains)]
Expand Down
2 changes: 0 additions & 2 deletions evm/tests/log_opcode.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::upper_case_acronyms)]

use std::collections::HashMap;
use std::str::FromStr;
use std::time::Duration;
Expand Down
3 changes: 0 additions & 3 deletions util/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![allow(clippy::new_without_default)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::type_complexity)]
#![allow(clippy::needless_range_loop)]
#![no_std]

Expand Down

0 comments on commit f46cf4e

Please sign in to comment.