File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ impl<'q> Encode<'q, Sqlite> for Arc<[u8]> {
114114 & self ,
115115 args : & mut Vec < SqliteArgumentValue < ' q > > ,
116116 ) -> Result < IsNull , BoxDynError > {
117- <Self as Encode < ' _ , Sqlite > >:: encode ( self . clone ( ) , args)
117+ <Vec < u8 > as Encode < ' _ , Sqlite > >:: encode ( self . to_vec ( ) , args)
118118 }
119119}
120120
@@ -127,6 +127,6 @@ impl<'q> Encode<'q, Sqlite> for Rc<[u8]> {
127127 & self ,
128128 args : & mut Vec < SqliteArgumentValue < ' q > > ,
129129 ) -> Result < IsNull , BoxDynError > {
130- <Self as Encode < ' _ , Sqlite > >:: encode ( self . clone ( ) , args)
130+ <Vec < u8 > as Encode < ' _ , Sqlite > >:: encode ( self . to_vec ( ) , args)
131131 }
132132}
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ impl<'q> Encode<'q, Sqlite> for Arc<str> {
106106 & self ,
107107 args : & mut Vec < SqliteArgumentValue < ' q > > ,
108108 ) -> Result < IsNull , BoxDynError > {
109- <Self as Encode < ' _ , Sqlite > >:: encode ( self . clone ( ) , args)
109+ <String as Encode < ' _ , Sqlite > >:: encode ( self . to_string ( ) , args)
110110 }
111111}
112112
@@ -119,6 +119,6 @@ impl<'q> Encode<'q, Sqlite> for Rc<str> {
119119 & self ,
120120 args : & mut Vec < SqliteArgumentValue < ' q > > ,
121121 ) -> Result < IsNull , BoxDynError > {
122- <Self as Encode < ' _ , Sqlite > >:: encode ( self . clone ( ) , args)
122+ <String as Encode < ' _ , Sqlite > >:: encode ( self . to_string ( ) , args)
123123 }
124124}
You can’t perform that action at this time.
0 commit comments