We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4f5be9 commit e1a3d2bCopy full SHA for e1a3d2b
examples/todo/src/main.rs
@@ -35,12 +35,12 @@ struct Context<'a> {
35
36
impl<'a> Context<'a> {
37
pub fn err(conn: &DbConn, msg: &'a str) -> Context<'a> {
38
- Context{msg: Some(("error", msg)), tasks: Task::all(conn).unwrap_or_default()}
+ Context { msg: Some(("error", msg)), tasks: Task::all(conn).unwrap_or_default() }
39
}
40
41
pub fn raw(conn: &DbConn, msg: Option<(&'a str, &'a str)>) -> Context<'a> {
42
match Task::all(conn) {
43
- Ok(tasks) => Context { msg, tasks},
+ Ok(tasks) => Context { msg, tasks },
44
Err(e) => {
45
error_!("DB Task::all() error: {}", e);
46
Context {
0 commit comments