We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5591c8 commit c516805Copy full SHA for c516805
postgres-types/src/lib.rs
@@ -1044,6 +1044,23 @@ impl BorrowToSql for &dyn ToSql {
1044
}
1045
1046
1047
+impl sealed::Sealed for Box<dyn ToSql + Sync> {}
1048
+
1049
+impl BorrowToSql for Box<dyn ToSql + Sync> {
1050
+ #[inline]
1051
+ fn borrow_to_sql(&self) -> &dyn ToSql {
1052
+ self.as_ref()
1053
+ }
1054
+}
1055
1056
+impl sealed::Sealed for Box<dyn ToSql + Sync + Send> {}
1057
+impl BorrowToSql for Box<dyn ToSql + Sync + Send> {
1058
1059
1060
1061
1062
1063
1064
impl sealed::Sealed for &(dyn ToSql + Sync) {}
1065
1066
/// In async contexts it is sometimes necessary to have the additional
0 commit comments