chore(interface-types) Simplify the code.

This commit is contained in:
Ivan Enderlin
2019-10-02 14:58:48 +02:00
parent f206ccd55f
commit 0a2b094d02
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ pub(crate) mod tests {
impl wasm::structures::LocalImport for LocalImport {
fn inputs_cardinality(&self) -> usize {
self.inputs.len() as usize
self.inputs.len()
}
fn outputs_cardinality(&self) -> usize {
@ -82,7 +82,7 @@ pub(crate) mod tests {
impl Deref for MemoryView {
type Target = [Cell<u8>];
fn deref(&self) -> &[Cell<u8>] {
fn deref(&self) -> &Self::Target {
self.0.as_slice()
}
}

View File

@ -125,7 +125,7 @@ impl MemoryView for EmptyMemoryView {}
impl Deref for EmptyMemoryView {
type Target = [Cell<u8>];
fn deref(&self) -> &[Cell<u8>] {
fn deref(&self) -> &Self::Target {
&[]
}
}