M Makefile => Makefile +9 -0
@@ 43,6 43,15 @@ install:
@echo
@echo ...Done!
+.PHONY: test
+test:
+ @echo
+ @echo Running tests...
+ @echo
+ cargo test
+ @echo
+ @echo ...Done!
+
.PHONY: uninstall
uninstall:
@echo
M src/db.rs => src/db.rs +1 -1
@@ 64,6 64,6 @@ mod tests {
let conn = Conn::init("/tmp/clinte-test.db");
let mut stmt = conn.prepare("SELECT * FROM POSTS").unwrap();
- stmt.query_map(rusqlite::NO_PARAMS, |row| Ok(()));
+ stmt.query_map(rusqlite::NO_PARAMS, |_| Ok(())).unwrap();
}
}