mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +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> {
|
pub fn build_proc(&mut self, proc: Proc<'a>, sym: Symbol) -> Result<u32, String> {
|
||||||
let ret_layout = WasmLayout::new(&proc.ret_layout);
|
let ret_layout = WasmLayout::new(&proc.ret_layout);
|
||||||
match ret_layout {
|
|
||||||
WasmLayout::StackMemory { .. } => {
|
if let WasmLayout::StackMemory { .. } = ret_layout {
|
||||||
return Err(format!(
|
return Err(format!(
|
||||||
"Not yet implemented: Returning values to callee stack memory {:?} {:?}",
|
"Not yet implemented: Returning values to callee stack memory {:?} {:?}",
|
||||||
proc.name, sym
|
proc.name, sym
|
||||||
));
|
));
|
||||||
}
|
|
||||||
_ => (),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.ret_type = ret_layout.value_type();
|
self.ret_type = ret_layout.value_type();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue