summaryrefslogtreecommitdiff
path: root/src/generation.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-11-20 10:20:33 +0200
committerLars Wirzenius <liw@liw.fi>2021-11-20 10:20:33 +0200
commit1f2072e07a7e8b52f3a70453e7216b2b81590ba1 (patch)
tree3f0c64267d8116ad4b9f86e46ae1d4667c2bab6e /src/generation.rs
parent7ff672f26e91404b71edfc25d6b27a6cda11609b (diff)
downloadobnam2-1f2072e07a7e8b52f3a70453e7216b2b81590ba1.tar.gz
chore: bump dependency on rusqlite to 0.26.1 and fix breakage
Sponsored-by: author
Diffstat (limited to 'src/generation.rs')
-rw-r--r--src/generation.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/generation.rs b/src/generation.rs
index de2ea10..33750ca 100644
--- a/src/generation.rs
+++ b/src/generation.rs
@@ -351,8 +351,8 @@ mod sql {
}
fn row_to_key_value(row: &Row) -> rusqlite::Result<(String, String)> {
- let key: String = row.get(row.column_index("key")?)?;
- let value: String = row.get(row.column_index("value")?)?;
+ let key: String = row.get("key")?;
+ let value: String = row.get("value")?;
Ok((key, value))
}
@@ -383,9 +383,9 @@ mod sql {
}
pub fn row_to_entry(row: &Row) -> rusqlite::Result<(FileId, String, String)> {
- let fileno: FileId = row.get(row.column_index("fileno")?)?;
- let json: String = row.get(row.column_index("json")?)?;
- let reason: String = row.get(row.column_index("reason")?)?;
+ let fileno: FileId = row.get("fileno")?;
+ let json: String = row.get("json")?;
+ let reason: String = row.get("reason")?;
Ok((fileno, json, reason))
}