mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Clippy fix
This commit is contained in:
parent
0b0674368a
commit
c47c3ccf58
1 changed files with 6 additions and 8 deletions
|
@ -211,14 +211,12 @@ impl<'a> WasmBackend<'a> {
|
|||
|
||||
pub fn build_proc(&mut self, proc: Proc<'a>, sym: Symbol) -> Result<u32, String> {
|
||||
let ret_layout = WasmLayout::new(&proc.ret_layout);
|
||||
match ret_layout {
|
||||
WasmLayout::StackMemory { .. } => {
|
||||
return Err(format!(
|
||||
"Not yet implemented: Returning values to callee stack memory {:?} {:?}",
|
||||
proc.name, sym
|
||||
));
|
||||
}
|
||||
_ => (),
|
||||
|
||||
if let WasmLayout::StackMemory { .. } = ret_layout {
|
||||
return Err(format!(
|
||||
"Not yet implemented: Returning values to callee stack memory {:?} {:?}",
|
||||
proc.name, sym
|
||||
));
|
||||
}
|
||||
|
||||
self.ret_type = ret_layout.value_type();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue