Use full UFCS in to_sql_checked macro
Make sure we don't accidentally call an inherent to_sql method
This commit is contained in:
parent
d286d0a610
commit
6e3deb97f9
@ -37,7 +37,7 @@ macro_rules! to_sql_checked {
|
|||||||
if !<Self as $crate::types::ToSql>::accepts(ty) {
|
if !<Self as $crate::types::ToSql>::accepts(ty) {
|
||||||
return Err($crate::error::Error::WrongType(ty.clone()));
|
return Err($crate::error::Error::WrongType(ty.clone()));
|
||||||
}
|
}
|
||||||
self.to_sql(ty, out, ctx)
|
<Self as $crate::types::ToSql>::to_sql(self, ty, out, ctx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user