Skip to content

Commit

Permalink
Simplify return values
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Apr 7, 2021
1 parent 31c8d0f commit 95f25b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions compiler-rs/src/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ impl Shim {
vec![ValueType::F64; self.arity()]
}

// All shims return a value
pub fn get_return(&self) -> Vec<ValueType> {
match self {
Shim::Sin => vec![ValueType::F64],
Shim::Pow => vec![ValueType::F64],
}
vec![ValueType::F64]
}
pub fn arity(&self) -> usize {
match self {
Expand Down

0 comments on commit 95f25b9

Please sign in to comment.