File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change 11use std:: str:: FromStr ;
22
3- use async_trait:: async_trait;
43#[ cfg( feature = "fetch_languages" ) ]
54use regex:: Regex ;
65use reqwest:: blocking:: Client ;
@@ -30,7 +29,6 @@ impl Default for BaiduTranslator {
3029 }
3130}
3231
33- #[ async_trait]
3432#[ cfg( feature = "fetch_languages" ) ]
3533impl TranslatorLanguages for BaiduTranslator {
3634 /// returns all available languages
@@ -84,7 +82,6 @@ impl TranslatorLanguages for BaiduTranslator {
8482 }
8583}
8684
87- #[ async_trait]
8885impl TranslatorNoContext for BaiduTranslator {
8986 fn translate (
9087 & self ,
Original file line number Diff line number Diff line change 11use std:: collections:: HashSet ;
22
3- use async_trait:: async_trait;
43use reqwest:: blocking:: Client ;
54use reqwest:: header:: { ORIGIN , REFERER } ;
65#[ cfg( feature = "fetch_languages" ) ]
@@ -72,7 +71,6 @@ impl YoudaoTranslator {
7271 }
7372}
7473
75- #[ async_trait]
7674impl TranslatorNoContext for YoudaoTranslator {
7775 fn translate (
7876 & self ,
You can’t perform that action at this time.
0 commit comments