aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
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)