@@ -322,7 +322,7 @@ fn exponential(values: &[Value], _ctx: &mut Context) -> Signal {
322322 } ;
323323
324324 Signal :: Success ( Value {
325- kind : Some ( Kind :: NumberValue ( base. powf ( exponent. clone ( ) ) ) ) ,
325+ kind : Some ( Kind :: NumberValue ( base. powf ( * exponent) ) ) ,
326326 } )
327327}
328328
@@ -363,7 +363,7 @@ fn round_up(values: &[Value], _ctx: &mut Context) -> Signal {
363363 ) ) ;
364364 } ;
365365
366- let factor = 10_f64 . powi ( decimal_places. clone ( ) as i32 ) ;
366+ let factor = 10_f64 . powi ( * decimal_places as i32 ) ;
367367
368368 Signal :: Success ( Value {
369369 kind : Some ( Kind :: NumberValue ( ( value * factor) . ceil ( ) / factor) ) ,
@@ -389,7 +389,7 @@ fn round_down(values: &[Value], _ctx: &mut Context) -> Signal {
389389 ) ) ;
390390 } ;
391391
392- let factor = 10_f64 . powi ( decimal_places. clone ( ) as i32 ) ;
392+ let factor = 10_f64 . powi ( * decimal_places as i32 ) ;
393393
394394 Signal :: Success ( Value {
395395 kind : Some ( Kind :: NumberValue ( ( value * factor) . floor ( ) / factor) ) ,
@@ -415,7 +415,7 @@ fn round(values: &[Value], _ctx: &mut Context) -> Signal {
415415 ) ) ;
416416 } ;
417417
418- let factor = 10_f64 . powi ( decimal_places. clone ( ) as i32 ) ;
418+ let factor = 10_f64 . powi ( * decimal_places as i32 ) ;
419419
420420 Signal :: Success ( Value {
421421 kind : Some ( Kind :: NumberValue ( ( value * factor) . round ( ) / factor) ) ,
@@ -460,7 +460,7 @@ fn root(values: &[Value], _ctx: &mut Context) -> Signal {
460460 } ;
461461
462462 Signal :: Success ( Value {
463- kind : Some ( Kind :: NumberValue ( value. powf ( root. clone ( ) ) ) ) ,
463+ kind : Some ( Kind :: NumberValue ( value. powf ( * root) ) ) ,
464464 } )
465465}
466466
@@ -484,7 +484,7 @@ fn log(values: &[Value], _ctx: &mut Context) -> Signal {
484484 } ;
485485
486486 Signal :: Success ( Value {
487- kind : Some ( Kind :: NumberValue ( value. log ( log. clone ( ) ) ) ) ,
487+ kind : Some ( Kind :: NumberValue ( value. log ( * log) ) ) ,
488488 } )
489489}
490490
@@ -572,7 +572,7 @@ fn min(values: &[Value], _ctx: &mut Context) -> Signal {
572572 } ;
573573
574574 Signal :: Success ( Value {
575- kind : Some ( Kind :: NumberValue ( lhs. min ( rhs. clone ( ) ) ) ) ,
575+ kind : Some ( Kind :: NumberValue ( lhs. min ( * rhs) ) ) ,
576576 } )
577577}
578578
@@ -596,7 +596,7 @@ fn max(values: &[Value], _ctx: &mut Context) -> Signal {
596596 } ;
597597
598598 Signal :: Success ( Value {
599- kind : Some ( Kind :: NumberValue ( lhs. max ( rhs. clone ( ) ) ) ) ,
599+ kind : Some ( Kind :: NumberValue ( lhs. max ( * rhs) ) ) ,
600600 } )
601601}
602602
@@ -638,9 +638,7 @@ fn random(values: &[Value], _ctx: &mut Context) -> Signal {
638638 } ;
639639
640640 Signal :: Success ( Value {
641- kind : Some ( Kind :: NumberValue ( rand:: random_range (
642- min. clone ( ) ..max. clone ( ) ,
643- ) ) ) ,
641+ kind : Some ( Kind :: NumberValue ( rand:: random_range ( * min..* max) ) ) ,
644642 } )
645643}
646644
@@ -810,7 +808,7 @@ fn clamp(values: &[Value], _ctx: &mut Context) -> Signal {
810808 } ;
811809
812810 Signal :: Success ( Value {
813- kind : Some ( Kind :: NumberValue ( value. clamp ( min. clone ( ) , max. clone ( ) ) ) ) ,
811+ kind : Some ( Kind :: NumberValue ( value. clamp ( * min, * max) ) ) ,
814812 } )
815813}
816814
0 commit comments