diff --git a/Cargo.toml b/Cargo.toml index 463f53c..d8ce6aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,8 +5,6 @@ edition = "2018" license = "MIT OR Apache-2.0" authors = ["Mathias Rothenhäusler Result<(), Box> { let v: Value = serde_json::from_str(&body)?; let result = String::from_str(match v["translations"][0]["text"].as_str() { Some(text) => text, - None => "No results" + None => body.as_str() }).unwrap(); + println!("{}", result.replace("\"", "")); Ok(()) }