Skip to content

Commit 0aa350e

Browse files
committed
expr.canonical_name() is deprecated, use format!() expr instead
1 parent 38dea0d commit 0aa350e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl PyExpr {
195195

196196
/// Returns a full and complete string representation of this expression.
197197
fn canonical_name(&self) -> PyResult<String> {
198-
Ok(self.expr.canonical_name())
198+
Ok(format!("{}", self.expr))
199199
}
200200

201201
/// Returns the name of the Expr variant.

0 commit comments

Comments
 (0)