File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1563,13 +1563,13 @@ impl Expr {
1563
1563
/// Returns true if there are any column references in this Expr
1564
1564
pub fn any_column_refs ( & self ) -> bool {
1565
1565
self . exists ( |expr| Ok ( matches ! ( expr, Expr :: Column ( _) ) ) )
1566
- . unwrap ( )
1566
+ . expect ( "exists closure is infallible" )
1567
1567
}
1568
1568
1569
- /// Return true when the expression contains out reference(correlated) expressions.
1569
+ /// Return true if the expression contains out reference(correlated) expressions.
1570
1570
pub fn contains_outer ( & self ) -> bool {
1571
1571
self . exists ( |expr| Ok ( matches ! ( expr, Expr :: OuterReferenceColumn { .. } ) ) )
1572
- . unwrap ( )
1572
+ . expect ( "exists closure is infallible" )
1573
1573
}
1574
1574
1575
1575
/// Returns true if the expression node is volatile, i.e. whether it can return
@@ -1589,7 +1589,8 @@ impl Expr {
1589
1589
///
1590
1590
/// See [`Volatility`] for more information.
1591
1591
pub fn is_volatile ( & self ) -> bool {
1592
- self . exists ( |expr| Ok ( expr. is_volatile_node ( ) ) ) . unwrap ( )
1592
+ self . exists ( |expr| Ok ( expr. is_volatile_node ( ) ) )
1593
+ . expect ( "exists closure is infallible" )
1593
1594
}
1594
1595
1595
1596
/// Recursively find all [`Expr::Placeholder`] expressions, and
You can’t perform that action at this time.
0 commit comments