diff options
Diffstat (limited to 'examples/tinydb.rs')
-rw-r--r-- | examples/tinydb.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tinydb.rs b/examples/tinydb.rs index 7c71dedf..c1af2541 100644 --- a/examples/tinydb.rs +++ b/examples/tinydb.rs @@ -130,7 +130,7 @@ async fn main() -> Result<(), Box<dyn Error>> { let response = response.serialize(); - if let Err(e) = lines.send(response).await { + if let Err(e) = lines.send(response.as_str()).await { println!("error on sending response; error = {:?}", e); } } |