Skip to content

Commit 6e3deb9

Browse files
committed
Use full UFCS in to_sql_checked macro
Make sure we don't accidentally call an inherent to_sql method
1 parent d286d0a commit 6e3deb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ macro_rules! to_sql_checked {
3737
if !<Self as $crate::types::ToSql>::accepts(ty) {
3838
return Err($crate::error::Error::WrongType(ty.clone()));
3939
}
40-
self.to_sql(ty, out, ctx)
40+
<Self as $crate::types::ToSql>::to_sql(self, ty, out, ctx)
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)