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 0f2803c commit e679aae
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 @@ -94,6 +94,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 @@ -157,7 +158,7 @@ mod tests {
#[test]
fn try_request() {
let needs = HashMap::new();
let result = translate("Hello", "auto", "zh", needs).unwrap();
let result = translate("Hello", "auto", "zh", "", needs).unwrap();
println!("{result}");
}
}

0 comments on commit e679aae

Please sign in to comment.