From ccb3e2a80080f535c2f8de11c94e016840cf75dd Mon Sep 17 00:00:00 2001 From: Alisander Qoshqosh Date: Fri, 5 Apr 2024 16:56:49 +0400 Subject: [PATCH] ++ --- contracts/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/src/utils.rs b/contracts/src/utils.rs index 20c93268..e4cd10dc 100644 --- a/contracts/src/utils.rs +++ b/contracts/src/utils.rs @@ -1,7 +1,7 @@ use alloy_primitives::U256; use stylus_sdk::storage::{StorageGuardMut, StorageUint}; -pub trait AddAssignUnchecked { +pub(crate) trait AddAssignUnchecked { fn add_assign_unchecked(&mut self, rhs: T); } @@ -12,7 +12,7 @@ impl<'a> AddAssignUnchecked for StorageGuardMut<'a, StorageUint<256, 4>> { } } -pub trait SubAssignUnchecked { +pub(crate) trait SubAssignUnchecked { fn sub_assign_unchecked(&mut self, rhs: T); }