A tiny bit more consistent API

This commit is contained in:
Aleksey Kladov 2020-02-06 23:59:27 +01:00
parent a4431e8302
commit 56e3fbe588
2 changed files with 2 additions and 2 deletions

View file

@ -158,7 +158,7 @@ pub fn where_clause(preds: impl IntoIterator<Item = ast::WherePred>) -> ast::Whe
}
}
pub fn if_expression(condition: &ast::Expr, statement: &str) -> ast::IfExpr {
pub fn if_expression(condition: ast::Expr, statement: &str) -> ast::IfExpr {
ast_from_text(&format!(
"fn f() {{ if !{} {{\n {}\n}}\n}}",
condition.syntax().text(),