Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDecryptor authored Sep 24, 2023
1 parent 65e4c92 commit 627a6b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub fn translate(
text: &str,
from: &str,
to: &str,
_detect: &str,
_needs: HashMap<String, String>,
) -> Result<Value, Box<dyn Error>> {
let client = reqwest::blocking::ClientBuilder::new().build()?;
Expand Down Expand Up @@ -63,7 +64,7 @@ mod tests {
#[test]
fn try_request() {
let needs = HashMap::new();
let result = translate("你好 世界!", "auto", "en", needs).unwrap();
let result = translate("你好 世界!", "auto", "en", "", needs).unwrap();
println!("{result}");
}
}

0 comments on commit 627a6b8

Please sign in to comment.