Skip to content

Commit

Permalink
add 2 ices
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Jul 7, 2022
1 parent e692372 commit 4a3c970
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ices/98897.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub fn main() {
(|_, ()| ())([return, ()]);
}
13 changes: 13 additions & 0 deletions ices/98932.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pub struct EntriesBuffer(Box<[[u8; HashesEntry::LEN]; 5]>);

impl EntriesBuffer {
pub fn iter_child_buffers(&mut self) -> impl Iterator<Item = &mut [u8; HashesEntry::LEN]> {
self.0.iter_mut()
}
}

pub struct HashesEntry<'a>(&'a [u8]);

impl HashesEntry<'_> {
pub const LEN: usize = 1;
}

0 comments on commit 4a3c970

Please sign in to comment.