reader without mut

This commit is contained in:
2023-03-28 14:59:44 +03:00
parent 249ac3a4ef
commit e18539a982
2 changed files with 10 additions and 9 deletions

View File

@@ -232,7 +232,7 @@ fn main() {
}
fn read_from_db2(id: u32) -> Option<Question> {
let mut reader: db::Reader<Question> =
let reader: db::Reader<Question> =
db::Reader::new(NEW_DB_FILENAME, 2048).expect("new db reader");
let mut questions = reader.iter();