mirror of
https://github.com/rm-dr/daisy
synced 2025-07-03 17:19:41 -07:00
Cleanup
This commit is contained in:
@ -28,7 +28,7 @@ fn to_radians(q: Quantity) -> Result<Quantity, ()> {
|
||||
|
||||
pub fn eval_function(g: &Expression) -> Result<Expression, (LineLocation, EvalError)> {
|
||||
|
||||
let Expression::Operator(loc, Operator::Function(f), args) = g else {panic!()};
|
||||
let Expression::Operator(loc, Operator::Function(f), args) = g else {unreachable!()};
|
||||
|
||||
if args.len() != 1 {panic!()};
|
||||
let a = &args[0];
|
||||
|
Reference in New Issue
Block a user