@@ -28,7 +28,7 @@ impl Task for EncodeTask<'static> {
2828 . ok_or ( Error :: from_reason ( "No provided input" ) ) ?,
2929 self . add_special_tokens ,
3030 )
31- . map_err ( |e| Error :: from_reason ( format ! ( "{}" , e ) ) )
31+ . map_err ( |e| Error :: from_reason ( format ! ( "{e}" ) ) )
3232 }
3333
3434 fn resolve ( & mut self , _env : Env , output : Self :: Output ) -> Result < Self :: JsValue > {
@@ -55,7 +55,7 @@ impl Task for DecodeTask {
5555 . read ( )
5656 . unwrap ( )
5757 . decode ( & self . ids , self . skip_special_tokens )
58- . map_err ( |e| Error :: from_reason ( format ! ( "{}" , e ) ) )
58+ . map_err ( |e| Error :: from_reason ( format ! ( "{e}" ) ) )
5959 }
6060
6161 fn resolve ( & mut self , _env : Env , output : Self :: Output ) -> Result < Self :: JsValue > {
@@ -85,7 +85,7 @@ impl Task for EncodeBatchTask<'static> {
8585 . ok_or ( Error :: from_reason ( "No provided input" ) ) ?,
8686 self . add_special_tokens ,
8787 )
88- . map_err ( |e| Error :: from_reason ( format ! ( "{}" , e ) ) )
88+ . map_err ( |e| Error :: from_reason ( format ! ( "{e}" ) ) )
8989 }
9090
9191 fn resolve ( & mut self , _env : Env , output : Self :: Output ) -> Result < Self :: JsValue > {
@@ -118,7 +118,7 @@ impl Task for DecodeBatchTask {
118118 . read ( )
119119 . unwrap ( )
120120 . decode_batch ( & ids, self . skip_special_tokens )
121- . map_err ( |e| Error :: from_reason ( format ! ( "{}" , e ) ) )
121+ . map_err ( |e| Error :: from_reason ( format ! ( "{e}" ) ) )
122122 }
123123
124124 fn resolve ( & mut self , _env : Env , output : Self :: Output ) -> Result < Self :: JsValue > {
0 commit comments