@@ -471,9 +471,9 @@ impl<'a> TypeChecker<'a> {
471
471
substring_for,
472
472
..
473
473
} => {
474
- let mut arguments = vec ! [ expr. as_ref( ) , from_expr . as_ref( ) ] ;
475
- if let Some ( for_expr ) = for_expr {
476
- arguments. push ( for_expr . as_ref ( ) ) ;
474
+ let mut arguments = vec ! [ expr. as_ref( ) , substring_from . as_ref( ) ] ;
475
+ if let Some ( substring_for ) = substring_for {
476
+ arguments. push ( substring_for . as_ref ( ) ) ;
477
477
}
478
478
self . resolve_function ( span, "substring" , & arguments, required_type)
479
479
. await ?
@@ -1452,7 +1452,7 @@ impl<'a> TypeChecker<'a> {
1452
1452
quote : None ,
1453
1453
span : span[ 0 ] . clone ( ) ,
1454
1454
} ,
1455
- args : vec ! [ ( * arg0 ) . clone( ) ] ,
1455
+ args : vec ! [ ( * arg_x ) . clone( ) ] ,
1456
1456
params : vec ! [ ] ,
1457
1457
} ] ,
1458
1458
None ,
@@ -1980,10 +1980,9 @@ impl<'a> TypeChecker<'a> {
1980
1980
expr : Box :: new (
1981
1981
self . clone_expr_with_replacement ( expr. as_ref ( ) , replacement_fn) ?,
1982
1982
) ,
1983
- substring_from : Box :: new ( self . clone_expr_with_replacement (
1984
- substring_from_expr. as_ref ( ) ,
1985
- replacement_fn,
1986
- ) ?) ,
1983
+ substring_from : Box :: new (
1984
+ self . clone_expr_with_replacement ( substring_from. as_ref ( ) , replacement_fn) ?,
1985
+ ) ,
1987
1986
substring_for : if let Some ( substring_for_expr) = substring_for {
1988
1987
Some ( Box :: new ( self . clone_expr_with_replacement (
1989
1988
substring_for_expr. as_ref ( ) ,
0 commit comments