File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " mexpreval"
33version = " 0.1.0"
4- edition = " 2021 "
4+ edition = " 2018 "
55
66[dependencies ]
77meval = { version = " 0.2.0" }
Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ pub unsafe extern "C" fn eval_f_exprs(
4343 let expr = exprs_cache. entry ( * ptr) . or_insert_with ( || {
4444 let c_str = CStr :: from_ptr ( * ptr) ;
4545 let s = c_str. to_str ( ) . unwrap_unchecked ( ) ;
46- Expr :: from_str ( s) . unwrap_or_else ( |e| panic ! ( "Error parsing expresion {s }: {e}" ) )
46+ Expr :: from_str ( s) . unwrap_or_else ( |e| panic ! ( "Error parsing expresion {}: {}" , s , e ) )
4747 } ) ;
4848
4949 ydot[ i] = expr
5050 . eval_with_context ( & * ctx)
51- . unwrap_or_else ( |e| panic ! ( "Error evaluating epresion: {e}" ) ) ;
51+ . unwrap_or_else ( |e| panic ! ( "Error evaluating epresion: {}" , e ) ) ;
5252 }
5353 } ) ;
5454 } ) ;
You can’t perform that action at this time.
0 commit comments