File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,13 @@ impl ToSql for RusqliteValue {
119119 #[ cfg( feature = "with-json" ) ]
120120 Value :: Json ( j) => box_to_sql ! ( j) ,
121121 #[ cfg( feature = "with-rust_decimal" ) ]
122- Value :: Decimal ( v) => opt_string_to_sql ! ( v. map( |v| v. to_string( ) ) ) ,
122+ Value :: Decimal ( v) => opt_string_to_sql ! ( v. as_ref ( ) . map( |v| v. to_string( ) ) ) ,
123123 #[ cfg( feature = "with-bigdecimal" ) ]
124- Value :: BigDecimal ( v) => opt_string_to_sql ! ( v. map( |v| v. to_string( ) ) ) ,
124+ Value :: BigDecimal ( v) => opt_string_to_sql ! ( v. as_ref ( ) . map( |v| v. to_string( ) ) ) ,
125125 #[ cfg( feature = "with-ipnetwork" ) ]
126- Value :: IpNetwork ( v) => opt_string_to_sql ! ( v. map( |v| v. to_string( ) ) ) ,
126+ Value :: IpNetwork ( v) => opt_string_to_sql ! ( v. as_ref ( ) . map( |v| v. to_string( ) ) ) ,
127127 #[ cfg( feature = "with-mac_address" ) ]
128- Value :: MacAddress ( v) => opt_string_to_sql ! ( v. map( |v| v. to_string( ) ) ) ,
128+ Value :: MacAddress ( v) => opt_string_to_sql ! ( v. as_ref ( ) . map( |v| v. to_string( ) ) ) ,
129129 #[ cfg( feature = "postgres-array" ) ]
130130 Value :: Array ( _, _) => {
131131 panic ! ( "Rusqlite doesn't support Array arguments" ) ;
You can’t perform that action at this time.
0 commit comments