Skip to content

Commit

Permalink
remove the unused generics
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed Mar 18, 2024
1 parent 7e937a6 commit 52336aa
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/utils/u64_tuple_storage_test.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@ use starknet::storage_access::{StorePacking};
use governance::utils::u64_tuple_storage::{ThreeU64TupleStorePacking, TwoU64TupleStorePacking};

pub(crate) fn assert_pack_unpack<
T,
U,
+StorePacking<T, U>,
+PartialEq<T>,
+PartialEq<U>,
+core::fmt::Debug<T>,
+core::fmt::Debug<U>,
+Drop<T>,
+Copy<T>,
+Drop<U>,
+Copy<U>
T, U, +StorePacking<T, U>, +PartialEq<T>, +core::fmt::Debug<T>, +Drop<T>, +Copy<T>
>(
x: T
) {
Expand All @@ -32,7 +22,7 @@ fn test_two_tuple_storage_forward_back() {
fn test_three_tuple_storage_forward_back() {
assert_pack_unpack((123_u64, 234_u64, 345_u64));
assert_pack_unpack((0_u64, 0_u64, 0_u64));

assert_pack_unpack((0xffffffffffffffff_u64, 0xffffffffffffffff_u64, 0xffffffffffffffff_u64));

assert_pack_unpack((0xffffffffffffffff_u64, 0xffffffffffffffff_u64, 0_u64));
Expand Down

0 comments on commit 52336aa

Please sign in to comment.