1- use rbs:: to_value;
1+ #![ forbid( unsafe_code) ]
2+
23use rbs:: Value as RbValue ;
4+ use rbs:: to_value;
35use sea_query:: * ;
46pub trait SqlxBinder {
57 fn build_rbs < T : QueryBuilder > ( & self , query_builder : T ) -> ( String , Vec < rbs:: Value > ) ;
@@ -79,19 +81,35 @@ fn to_rb_values(values: Values) -> Vec<rbs::Value> {
7981 }
8082 #[ cfg( feature = "with-chrono" ) ]
8183 Value :: ChronoDateTime ( t) => {
82- args. push ( Value :: ChronoDateTime ( t) . chrono_as_naive_utc_in_string ( ) . to ( ) ) ;
84+ args. push (
85+ Value :: ChronoDateTime ( t)
86+ . chrono_as_naive_utc_in_string ( )
87+ . to ( ) ,
88+ ) ;
8389 }
8490 #[ cfg( feature = "with-chrono" ) ]
8591 Value :: ChronoDateTimeUtc ( t) => {
86- args. push ( Value :: ChronoDateTimeUtc ( t) . chrono_as_naive_utc_in_string ( ) . to ( ) ) ;
92+ args. push (
93+ Value :: ChronoDateTimeUtc ( t)
94+ . chrono_as_naive_utc_in_string ( )
95+ . to ( ) ,
96+ ) ;
8797 }
8898 #[ cfg( feature = "with-chrono" ) ]
8999 Value :: ChronoDateTimeLocal ( t) => {
90- args. push ( Value :: ChronoDateTimeLocal ( t) . chrono_as_naive_utc_in_string ( ) . to ( ) ) ;
100+ args. push (
101+ Value :: ChronoDateTimeLocal ( t)
102+ . chrono_as_naive_utc_in_string ( )
103+ . to ( ) ,
104+ ) ;
91105 }
92106 #[ cfg( feature = "with-chrono" ) ]
93107 Value :: ChronoDateTimeWithTimeZone ( t) => {
94- args. push ( Value :: ChronoDateTimeWithTimeZone ( t) . chrono_as_naive_utc_in_string ( ) . to ( ) ) ;
108+ args. push (
109+ Value :: ChronoDateTimeWithTimeZone ( t)
110+ . chrono_as_naive_utc_in_string ( )
111+ . to ( ) ,
112+ ) ;
95113 }
96114 #[ cfg( feature = "with-time" ) ]
97115 Value :: TimeDate ( t) => {
@@ -107,7 +125,11 @@ fn to_rb_values(values: Values) -> Vec<rbs::Value> {
107125 }
108126 #[ cfg( feature = "with-time" ) ]
109127 Value :: TimeDateTimeWithTimeZone ( t) => {
110- args. push ( Value :: TimeDateTimeWithTimeZone ( t) . time_as_naive_utc_in_string ( ) . to ( ) ) ;
128+ args. push (
129+ Value :: TimeDateTimeWithTimeZone ( t)
130+ . time_as_naive_utc_in_string ( )
131+ . to ( ) ,
132+ ) ;
111133 }
112134 #[ cfg( feature = "with-uuid" ) ]
113135 Value :: Uuid ( uuid) => {
0 commit comments