Skip to content

Commit e1a3d2b

Browse files
committed
Fix minor formatting issues in 'todo' example.
1 parent a4f5be9 commit e1a3d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/todo/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ struct Context<'a> {
3535

3636
impl<'a> Context<'a> {
3737
pub fn err(conn: &DbConn, msg: &'a str) -> Context<'a> {
38-
Context{msg: Some(("error", msg)), tasks: Task::all(conn).unwrap_or_default()}
38+
Context { msg: Some(("error", msg)), tasks: Task::all(conn).unwrap_or_default() }
3939
}
4040

4141
pub fn raw(conn: &DbConn, msg: Option<(&'a str, &'a str)>) -> Context<'a> {
4242
match Task::all(conn) {
43-
Ok(tasks) => Context { msg, tasks},
43+
Ok(tasks) => Context { msg, tasks },
4444
Err(e) => {
4545
error_!("DB Task::all() error: {}", e);
4646
Context {

0 commit comments

Comments
 (0)