Skip to content

Commit

Permalink
Fix rust fmt errors for missing semis on returns.
Browse files Browse the repository at this point in the history
  • Loading branch information
kanaka committed Jan 22, 2019
1 parent dc9e4b7 commit e8fb1b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions lib/jit/src/action.rs
Expand Up @@ -142,13 +142,13 @@ pub fn invoke(
return Err(ActionError::Kind(format!(
"exported item \"{}\" is not a function",
function_name
)))
)));
}
None => {
return Err(ActionError::Field(format!(
"no export named \"{}\"",
function_name
)))
)));
}
};

Expand Down Expand Up @@ -232,13 +232,13 @@ pub fn inspect_memory<'instance>(
return Err(ActionError::Kind(format!(
"exported item \"{}\" is not a linear memory",
memory_name
)))
)));
}
None => {
return Err(ActionError::Field(format!(
"no export named \"{}\"",
memory_name
)))
)));
}
};

Expand All @@ -256,13 +256,13 @@ pub fn get(instance: &Instance, global_name: &str) -> Result<RuntimeValue, Actio
return Err(ActionError::Kind(format!(
"exported item \"{}\" is not a global variable",
global_name
)))
)));
}
None => {
return Err(ActionError::Field(format!(
"no export named \"{}\"",
global_name
)))
)));
}
};

Expand All @@ -277,7 +277,7 @@ pub fn get(instance: &Instance, global_name: &str) -> Result<RuntimeValue, Actio
return Err(ActionError::Type(format!(
"global with type {} not supported",
other
)))
)));
}
})
}
Expand Down
10 changes: 5 additions & 5 deletions lib/jit/src/link.rs
Expand Up @@ -57,7 +57,7 @@ pub fn link_module(
return Err(LinkError(format!(
"{}/{}: no provided import function",
module_name, field
)))
)));
}
}
}
Expand Down Expand Up @@ -94,7 +94,7 @@ pub fn link_module(
return Err(LinkError(format!(
"no provided import table for {}/{}",
module_name, field
)))
)));
}
}
}
Expand Down Expand Up @@ -147,7 +147,7 @@ pub fn link_module(
return Err(LinkError(format!(
"no provided import memory for {}/{}",
module_name, field
)))
)));
}
}
}
Expand Down Expand Up @@ -177,7 +177,7 @@ pub fn link_module(
return Err(LinkError(format!(
"no provided import global for {}/{}",
module_name, field
)))
)));
}
}
}
Expand Down Expand Up @@ -350,7 +350,7 @@ fn relocate(
#[cfg(target_pointer_width = "32")]
Reloc::X86CallPCRel4 => {
// ignore
},
}
_ => panic!("unsupported reloc kind"),
}
}
Expand Down

0 comments on commit e8fb1b6

Please sign in to comment.