aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorJoris2022-10-09 17:47:07 +0200
committerJoris2022-10-09 17:47:07 +0200
commitfb38e8fd9ba849860e301a68cdd262b286c05711 (patch)
tree820811f412d8dd472a22d787a95bd9c6f6886253 /src/db
parent76e841c740701c46969cf8cfeab94dc3cef65d9a (diff)
Format code
Diffstat (limited to 'src/db')
-rw-r--r--src/db/mod.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/db/mod.rs b/src/db/mod.rs
index f59aad5..c2749dc 100644
--- a/src/db/mod.rs
+++ b/src/db/mod.rs
@@ -57,13 +57,7 @@ pub fn synchronize(conn: &Connection, entries: Vec<Entry>) -> Result<()> {
Ok(())
}
-fn insert(
- conn: &Connection,
- now: u64,
- question: &str,
- responses: &str,
- state: &str,
-) -> Result<()> {
+fn insert(conn: &Connection, now: u64, question: &str, responses: &str, state: &str) -> Result<()> {
conn.execute(
"
INSERT INTO cards (question, responses, state, created, deck_read, ready)