@@ -545,7 +545,7 @@ impl SimplifyExpr {
545
545
if !left. may_have_side_effects ( self . expr_ctx ) {
546
546
self . changed = true ;
547
547
548
- if node. directness_maters ( ) {
548
+ if node. directness_matters ( ) {
549
549
* expr = SeqExpr {
550
550
span : node. span ( ) ,
551
551
exprs : vec ! [ 0 . into( ) , node. take( ) ] ,
@@ -1250,7 +1250,7 @@ impl VisitMut for SimplifyExpr {
1250
1250
. exprs
1251
1251
. last ( )
1252
1252
. map ( |v| & * * v)
1253
- . map_or ( false , Expr :: directness_maters )
1253
+ . map_or ( false , Expr :: directness_matters )
1254
1254
{
1255
1255
match seq. exprs . first ( ) . map ( |v| & * * v) {
1256
1256
Some ( Expr :: Lit ( ..) | Expr :: Ident ( ..) ) => { }
@@ -1371,7 +1371,7 @@ impl VisitMut for SimplifyExpr {
1371
1371
1372
1372
let expr_value = if val { cons } else { alt } ;
1373
1373
* expr = if p. is_pure ( ) {
1374
- if expr_value. directness_maters ( ) {
1374
+ if expr_value. directness_matters ( ) {
1375
1375
SeqExpr {
1376
1376
span : * span,
1377
1377
exprs : vec ! [ 0 . into( ) , expr_value. take( ) ] ,
@@ -1730,7 +1730,7 @@ fn nth_char(s: &str, mut idx: usize) -> Option<Cow<str>> {
1730
1730
}
1731
1731
1732
1732
fn need_zero_for_this ( e : & Expr ) -> bool {
1733
- e. directness_maters ( ) || e. is_seq ( )
1733
+ e. directness_matters ( ) || e. is_seq ( )
1734
1734
}
1735
1735
1736
1736
/// Gets the value of the given key from the given object properties, if the key
0 commit comments