Skip to content

Commit 47154e7

Browse files
committed
remove async trait
1 parent 2580fef commit 47154e7

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/translators/scrape/baidu.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::str::FromStr;
22

3-
use async_trait::async_trait;
43
#[cfg(feature = "fetch_languages")]
54
use regex::Regex;
65
use reqwest::blocking::Client;
@@ -30,7 +29,6 @@ impl Default for BaiduTranslator {
3029
}
3130
}
3231

33-
#[async_trait]
3432
#[cfg(feature = "fetch_languages")]
3533
impl TranslatorLanguages for BaiduTranslator {
3634
/// returns all available languages
@@ -84,7 +82,6 @@ impl TranslatorLanguages for BaiduTranslator {
8482
}
8583
}
8684

87-
#[async_trait]
8885
impl TranslatorNoContext for BaiduTranslator {
8986
fn translate(
9087
&self,

src/translators/scrape/youdao.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::collections::HashSet;
22

3-
use async_trait::async_trait;
43
use reqwest::blocking::Client;
54
use reqwest::header::{ORIGIN, REFERER};
65
#[cfg(feature = "fetch_languages")]
@@ -72,7 +71,6 @@ impl YoudaoTranslator {
7271
}
7372
}
7473

75-
#[async_trait]
7674
impl TranslatorNoContext for YoudaoTranslator {
7775
fn translate(
7876
&self,

0 commit comments

Comments
 (0)