@@ -77,7 +77,7 @@ impl Eval for NewExpression {
77
77
type Output = Value ;
78
78
79
79
fn eval ( & self , _: & mut Interpreter ) -> Result < Self :: Output > {
80
- todo ! ( "NewExpression::eval: {:#?}" , self )
80
+ todo ! ( "NewExpression::eval: {self :#?}" )
81
81
}
82
82
}
83
83
@@ -114,7 +114,7 @@ impl Eval for AssignmentExpression {
114
114
compute_updated,
115
115
map_err,
116
116
) ,
117
- lhs => todo ! ( "AssignmentExpression::eval: base_value={:?}" , lhs ) ,
117
+ lhs => todo ! ( "AssignmentExpression::eval: base_value={lhs :?}" ) ,
118
118
}
119
119
}
120
120
Expression :: Member ( MemberExpression :: ComputedMemberAccess ( lhs_node) ) => {
@@ -127,14 +127,14 @@ impl Eval for AssignmentExpression {
127
127
// FIXME: Remove this restriction as I think it's actually OK to key
128
128
// an object property by the empty
129
129
// string.
130
- todo ! ( "AssignmentExpression::eval: prop_name={}" , prop_value )
130
+ todo ! ( "AssignmentExpression::eval: prop_name={prop_value:?}" )
131
131
} ) ;
132
132
it. update_object_property ( lhs_ref, & prop_key, compute_updated, map_err)
133
133
}
134
- lhs => todo ! ( "AssignmentExpression::eval: base_value={:?}" , lhs ) ,
134
+ lhs => todo ! ( "AssignmentExpression::eval: base_value={lhs :?}" ) ,
135
135
}
136
136
}
137
- lhs => todo ! ( "AssignmentExpression::eval: lhs={:#?}" , lhs ) ,
137
+ lhs => todo ! ( "AssignmentExpression::eval: lhs={lhs :#?}" ) ,
138
138
}
139
139
}
140
140
}
@@ -235,10 +235,10 @@ impl Eval for UpdateExpression {
235
235
compute_updated,
236
236
map_err,
237
237
) ,
238
- operand => todo ! ( "UpdateExpression::eval: operand={:?}" , operand ) ,
238
+ operand => todo ! ( "UpdateExpression::eval: operand={operand :?}" ) ,
239
239
}
240
240
}
241
- operand => todo ! ( "UpdateExpression::eval: operand={:#?}" , operand ) ,
241
+ operand => todo ! ( "UpdateExpression::eval: operand={operand :#?}" ) ,
242
242
}
243
243
}
244
244
}
@@ -270,7 +270,7 @@ impl Eval for MemberAccessExpression {
270
270
. unwrap_or_default ( ) ;
271
271
Ok ( value)
272
272
}
273
- base_value => todo ! ( "PropertyAccessExpression::eval: base={:?}" , base_value ) ,
273
+ base_value => todo ! ( "PropertyAccessExpression::eval: base={base_value :?}" ) ,
274
274
}
275
275
}
276
276
}
@@ -282,12 +282,12 @@ impl Eval for ComputedMemberAccessExpression {
282
282
let base_value = self . base . eval ( it) ?;
283
283
let ( base_refr, base_obj) = match base_value {
284
284
Value :: Object ( base_refr) => ( base_refr, it. vm ( ) . heap ( ) . resolve ( base_refr) ) ,
285
- base_value => todo ! ( "ComputedPropertyExpression::eval: base={:?}" , base_value ) ,
285
+ base_value => todo ! ( "ComputedPropertyExpression::eval: base={base_value :?}" ) ,
286
286
} ;
287
287
let property_value = self . member . eval ( it) ?;
288
288
let property = match property_value {
289
289
Value :: Number ( Number :: Int ( n) ) => PropertyKey :: from ( n) ,
290
- property => todo ! ( "ComputedPropertyExpression::eval: property={:?}" , property ) ,
290
+ property => todo ! ( "ComputedPropertyExpression::eval: property={property :?}" ) ,
291
291
} ;
292
292
let value = base_obj
293
293
. as_ref ( )
@@ -321,7 +321,7 @@ impl Eval for FunctionCallExpression {
321
321
} ;
322
322
let receiver = match receiver {
323
323
Some ( Value :: Object ( receiver) ) => Some ( receiver) ,
324
- Some ( receiver) => todo ! ( "FunctionCallExpression: receiver={:?}" , receiver ) ,
324
+ Some ( receiver) => todo ! ( "FunctionCallExpression: receiver={receiver :?}" ) ,
325
325
None => None ,
326
326
} ;
327
327
0 commit comments