From 67f5a949a4056c74f44e3bf73d1cb30103692b68 Mon Sep 17 00:00:00 2001 From: flip111 Date: Tue, 6 Mar 2018 01:35:41 +0100 Subject: [PATCH 1/2] Update qs_14.md fix syntax error on use statement --- guide/src/qs_14.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/qs_14.md b/guide/src/qs_14.md index e19d0ea9b..034832cd8 100644 --- a/guide/src/qs_14.md +++ b/guide/src/qs_14.md @@ -12,7 +12,7 @@ We have to define sync actor and connection that this actor will use. Same appro could be used for other databases. ```rust,ignore -use actix::prelude::*;* +use actix::prelude::*; struct DbExecutor(SqliteConnection); From 5b530f11b5a2597b6e3651f971205c20e8291e9a Mon Sep 17 00:00:00 2001 From: flip111 Date: Tue, 6 Mar 2018 01:46:16 +0100 Subject: [PATCH 2/2] Update qs_14.md fix missing semicolon --- guide/src/qs_14.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/qs_14.md b/guide/src/qs_14.md index 034832cd8..72827e4eb 100644 --- a/guide/src/qs_14.md +++ b/guide/src/qs_14.md @@ -36,7 +36,7 @@ We can send `CreateUser` message to `DbExecutor` actor, and as result we get ```rust,ignore impl Handler for DbExecutor { - type Result = Result + type Result = Result; fn handle(&mut self, msg: CreateUser, _: &mut Self::Context) -> Self::Result {