summaryrefslogtreecommitdiffstats
path: root/examples/tinydb.rs
diff options
context:
space:
mode:
authorLucio Franco <luciofranco14@gmail.com>2020-03-04 15:54:41 -0500
committerGitHub <noreply@github.com>2020-03-04 15:54:41 -0500
commit9d4d076189822e32574f8123efe21c732103f4d4 (patch)
treee0ff83c547bacfba77d8277246e219e8e73f04f4 /examples/tinydb.rs
parent1eb6131321b5bb8e0ccdb7b9433f6f0ef47821f2 (diff)
codec: change Encoder to take &Item (#1746)
Co-authored-by: Markus Westerlind <marwes91@gmail.com>
Diffstat (limited to 'examples/tinydb.rs')
-rw-r--r--examples/tinydb.rs2
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);
}
}