diff options
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | src/db.rs | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 8ff0588..36aad30 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/db.rs b/src/db.rs index f892c10..07655c5 100644 --- a/src/db.rs +++ b/src/db.rs @@ -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(); } } |