Skip to content

Commit

Permalink
ref: remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bidzyyys committed Oct 16, 2024
1 parent 7e770ee commit 7aa4b6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 1 addition & 4 deletions contracts/src/token/erc20/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,7 @@ mod tests {
use stylus_sdk::msg;

use super::{Erc20, Error, IErc20};
use crate::{
token::erc721::{Erc721, IErc721},
utils::introspection::erc165::IErc165,
};
use crate::utils::introspection::erc165::IErc165;

#[motsu::test]
fn reads_balance(contract: Erc20) {
Expand Down
6 changes: 2 additions & 4 deletions contracts/src/utils/structs/checkpoints/generic_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ define_checkpoint_size!(S224, 32, 224);
define_checkpoint_size!(S208, 48, 208);

/// Abstracts number inside the checkpoint contract.
pub(crate) trait Num:
Add + Sub + Mul + Div + Ord + Sized + Copy
{
pub trait Num: Add + Sub + Mul + Div + Ord + Sized + Copy {
/// Zero value of the number.
const ZERO: Self;
}
Expand All @@ -76,7 +74,7 @@ impl<const B: usize, const L: usize> Num for Uint<B, L> {
}

/// Abstracts accessor inside the checkpoint contract.
pub(crate) trait Accessor {
pub trait Accessor {
/// Type of the number associated with the storage type.
type Wraps: Num;

Expand Down
2 changes: 1 addition & 1 deletion contracts/src/utils/structs/checkpoints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//! define sizes for key and value.
//! Then store a new checkpoint for the current
//! transaction block using the [`Trace::push`] function.
mod generic_size;
pub mod generic_size;

use alloy_primitives::{uint, U256, U32};
use alloy_sol_types::sol;
Expand Down

0 comments on commit 7aa4b6d

Please sign in to comment.