Skip to content

Commit

Permalink
add FromIterTrait to preludes
Browse files Browse the repository at this point in the history
  • Loading branch information
julio4 committed Jan 9, 2025
1 parent 489db26 commit 7434298
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion corelib/src/prelude/v2023_01.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use crate::traits::{
Felt252DictValue, Into, Mul, Neg, Not, PanicDestruct, PartialEq, PartialOrd, Rem, Sub, TryInto,
TupleSize0Copy, TupleSize0Drop,
};
use crate::iter::{IntoIterator, Iterator};
use crate::iter::{FromIterator, IntoIterator, Iterator};
use crate::zeroable::{NonZero, Zeroable};
use crate::{
BoolBitAnd, BoolBitOr, BoolBitXor, BoolFelt252DictValue, BoolIntoFelt252, BoolNot,
Expand Down
2 changes: 1 addition & 1 deletion corelib/src/prelude/v2023_10.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub use crate::traits::{
Add, BitAnd, BitNot, BitOr, BitXor, Copy, Default, Destruct, Div, DivRem, Drop,
Felt252DictValue, Into, Mul, Neg, Not, PanicDestruct, PartialEq, PartialOrd, Rem, Sub, TryInto,
};
pub use crate::iter::{IntoIterator, Iterator};
pub use crate::iter::{FromIterator, IntoIterator, Iterator};
pub use crate::zeroable::NonZero;
pub use crate::{
RangeCheck, SegmentArena, assert, bool, felt252, keccak, math, starknet, to_byte_array, usize,
Expand Down
2 changes: 1 addition & 1 deletion corelib/src/prelude/v2024_07.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub use crate::traits::{
Add, Copy, Default, Destruct, Div, DivRem, Drop, Felt252DictValue, Into, Mul, Neg, Not,
PanicDestruct, PartialEq, PartialOrd, Rem, Sub, TryInto,
};
pub use crate::iter::{IntoIterator, Iterator};
pub use crate::iter::{FromIterator, IntoIterator, Iterator};
pub use crate::{assert, bool, felt252, starknet, usize};

pub use crate::zeroable::NonZero;
1 change: 0 additions & 1 deletion corelib/src/test/array_test.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::test::test_utils::assert_eq;
use crate::iter::FromIterator;

#[test]
fn test_array() {
Expand Down

0 comments on commit 7434298

Please sign in to comment.