Skip to content

Commit 95f25b9

Browse files
committed
Simplify return values
1 parent 31c8d0f commit 95f25b9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compiler-rs/src/shim.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ impl Shim {
1717
vec![ValueType::F64; self.arity()]
1818
}
1919

20+
// All shims return a value
2021
pub fn get_return(&self) -> Vec<ValueType> {
21-
match self {
22-
Shim::Sin => vec![ValueType::F64],
23-
Shim::Pow => vec![ValueType::F64],
24-
}
22+
vec![ValueType::F64]
2523
}
2624
pub fn arity(&self) -> usize {
2725
match self {

0 commit comments

Comments
 (0)