Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

add 2 ices #1334

Merged
merged 1 commit into from
Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}