Skip to content

Commit

Permalink
Fix warnings after rust upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jblebrun committed Dec 13, 2023
1 parent b5270be commit f87b92d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/format/text/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ macro_rules! resolve_all {
( $src:expr, $ic:expr, $types:expr ) => {
$src.into_iter()
.map(|i| i.resolve(&$ic, $types))
.collect::<Result<_>>();
.collect::<Result<_>>()
};
}

/// For an option of an unresolved items, returns an option of the resolved item.
macro_rules! resolve_option {
( $src:expr, $ic:expr, $types:expr ) => {
$src.map(|i| i.resolve(&$ic, $types)).transpose()?;
$src.map(|i| i.resolve(&$ic, $types)).transpose()?
};
}

Expand Down
3 changes: 1 addition & 2 deletions src/runtime/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use super::{
DataInstance, ElemInstance, FunctionInstance, GlobalInstance, MemInstance, TableInstance,
},
};
use crate::{impl_bug, logger::PrintLogger};
use crate::impl_bug;
use std::rc::Rc;
use std::{iter::Iterator, slice};

Expand Down Expand Up @@ -49,7 +49,6 @@ pub mod addr {
/// [Spec]: https://webassembly.github.io/spec/core/exec/runtime.html#store
#[derive(Default, Debug)]
pub struct Store {
logger: PrintLogger,
pub funcs: Vec<Rc<FunctionInstance>>,
pub tables: Vec<TableInstance>,
pub mems: Vec<MemInstance>,
Expand Down

0 comments on commit f87b92d

Please sign in to comment.