Skip to content

Commit

Permalink
fix no_std build
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed May 13, 2024
1 parent a6dcc6b commit e8f3f84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/wasmi/src/module/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::{
MemoryType,
TableType,
};
use core::ops::Range;
use core::ops::{Deref, DerefMut, Range};
use std::{boxed::Box, vec::Vec};
use wasmparser::{
Chunk,
Expand Down Expand Up @@ -113,7 +113,7 @@ impl ParseBuffer {
}
}

impl std::ops::Deref for ParseBuffer {
impl Deref for ParseBuffer {
type Target = Vec<u8>;

#[inline]
Expand All @@ -122,7 +122,7 @@ impl std::ops::Deref for ParseBuffer {
}
}

impl std::ops::DerefMut for ParseBuffer {
impl DerefMut for ParseBuffer {
#[inline]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.buffer

Check warning on line 128 in crates/wasmi/src/module/parser.rs

View check run for this annotation

Codecov / codecov/patch

crates/wasmi/src/module/parser.rs#L128

Added line #L128 was not covered by tests
Expand Down

0 comments on commit e8f3f84

Please sign in to comment.