Skip to content

Commit

Permalink
remove async trait
Browse files Browse the repository at this point in the history
  • Loading branch information
JustFrederik committed Jun 14, 2023
1 parent 2580fef commit 47154e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/translators/scrape/baidu.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::str::FromStr;

use async_trait::async_trait;
#[cfg(feature = "fetch_languages")]
use regex::Regex;
use reqwest::blocking::Client;
Expand Down Expand Up @@ -30,7 +29,6 @@ impl Default for BaiduTranslator {
}
}

#[async_trait]
#[cfg(feature = "fetch_languages")]
impl TranslatorLanguages for BaiduTranslator {
/// returns all available languages
Expand Down Expand Up @@ -84,7 +82,6 @@ impl TranslatorLanguages for BaiduTranslator {
}
}

#[async_trait]
impl TranslatorNoContext for BaiduTranslator {
fn translate(
&self,
Expand Down
2 changes: 0 additions & 2 deletions src/translators/scrape/youdao.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::collections::HashSet;

use async_trait::async_trait;
use reqwest::blocking::Client;
use reqwest::header::{ORIGIN, REFERER};
#[cfg(feature = "fetch_languages")]
Expand Down Expand Up @@ -72,7 +71,6 @@ impl YoudaoTranslator {
}
}

#[async_trait]
impl TranslatorNoContext for YoudaoTranslator {
fn translate(
&self,
Expand Down

0 comments on commit 47154e7

Please sign in to comment.