@@ -439,13 +439,6 @@ to_option_impl!(PgFloat4, f32)
439
439
to_conversions_impl ! ( PgFloat8 , f64 , write_be_f64)
440
440
to_option_impl ! ( PgFloat8 , f64 )
441
441
442
- impl ToSql for ~str {
443
- fn to_sql ( & self , ty : PostgresType ) -> ( Format , Option < ~[ u8 ] > ) {
444
- check_types ! ( PgVarchar | PgText | PgCharN , ty)
445
- ( Text , Some ( self . as_bytes ( ) . to_owned ( ) ) )
446
- }
447
- }
448
-
449
442
impl < ' self > ToSql for & ' self str {
450
443
fn to_sql ( & self , ty : PostgresType ) -> ( Format , Option < ~[ u8 ] > ) {
451
444
check_types ! ( PgVarchar | PgText | PgCharN , ty)
@@ -456,13 +449,6 @@ impl<'self> ToSql for &'self str {
456
449
to_option_impl ! ( PgVarchar | PgText | PgCharN , ~str )
457
450
to_option_impl ! ( self , PgVarchar | PgText | PgCharN , & ' self str )
458
451
459
- impl ToSql for ~[ u8 ] {
460
- fn to_sql ( & self , ty : PostgresType ) -> ( Format , Option < ~[ u8 ] > ) {
461
- check_types ! ( PgByteA , ty)
462
- ( Binary , Some ( self . to_owned ( ) ) )
463
- }
464
- }
465
-
466
452
impl < ' self > ToSql for & ' self [ u8 ] {
467
453
fn to_sql ( & self , ty : PostgresType ) -> ( Format , Option < ~[ u8 ] > ) {
468
454
check_types ! ( PgByteA , ty)
0 commit comments