Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Jan 30, 2025
1 parent 32f5ba1 commit da00632
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 23 deletions.
55 changes: 35 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/derive/src/test_utils/frame_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl TestFrameQueueProvider {
}

/// Sets the origin for the [MockFrameQueueProvider].
pub fn set_origin(&mut self, origin: BlockInfo) {
pub const fn set_origin(&mut self, origin: BlockInfo) {
self.origin = Some(origin);
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/mpt/src/list_walker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ where

/// Takes the inner list of the [OrderedListWalker], returning it and setting the inner list to
/// [None].
pub fn take_inner(&mut self) -> Option<VecDeque<(Bytes, Bytes)>> {
pub const fn take_inner(&mut self) -> Option<VecDeque<(Bytes, Bytes)>> {

Check warning on line 80 in crates/mpt/src/list_walker.rs

View check run for this annotation

Codecov / codecov/patch

crates/mpt/src/list_walker.rs#L80

Added line #L80 was not covered by tests
self.inner.take()
}

Expand Down
2 changes: 1 addition & 1 deletion crates/proof-sdk/std-fpvm/src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct ReadFuture<'a> {

impl<'a> ReadFuture<'a> {
/// Create a new [ReadFuture] from a channel and a buffer.
fn new(channel: FileChannel, buf: &'a mut [u8]) -> Self {
const fn new(channel: FileChannel, buf: &'a mut [u8]) -> Self {

Check warning on line 72 in crates/proof-sdk/std-fpvm/src/channel.rs

View check run for this annotation

Codecov / codecov/patch

crates/proof-sdk/std-fpvm/src/channel.rs#L72

Added line #L72 was not covered by tests
Self { channel, buf: RefCell::new(buf), read: 0 }
}
}
Expand Down

0 comments on commit da00632

Please sign in to comment.