This commit is contained in:
Chris Tsang 2024-06-19 12:41:24 +01:00
parent 9e93107bb8
commit a9c2e1bd0b

View File

@ -519,9 +519,7 @@ pub trait QuerySelect: Sized {
/// "SELECT `cake`.`id`, `cake`.`name`, UPPER(`cake`.`name`) AS `name_upper` FROM `cake`"
/// );
/// ```
///
/// FIXME: change signature to `mut self`
fn expr_as<T, A>(&mut self, expr: T, alias: A) -> &mut Self
fn expr_as<T, A>(mut self, expr: T, alias: A) -> Self
where
T: Into<SimpleExpr>,
A: IntoIdentity,