Skip to content

Commit

Permalink
apply rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Sep 18, 2022
1 parent d84e4a0 commit 889b301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wasmi_v1/src/memory/byte_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ impl ByteBuffer {
/// - If the initial length is 0.
/// - If the initial length exceeds the maximum supported limit.
pub fn new(initial_len: Bytes) -> Result<Self, MemoryError> {
let initial_len = Self::bytes_to_buffer_len(initial_len)
.ok_or(MemoryError::OutOfBoundsAllocation)?;
let initial_len =
Self::bytes_to_buffer_len(initial_len).ok_or(MemoryError::OutOfBoundsAllocation)?;
let bytes = vec![0x00_u8; initial_len];
Ok(Self { bytes })
}
Expand Down

0 comments on commit 889b301

Please sign in to comment.