upgrade to Rust 1.70, use std::sync::OnceLock

The most notable part of this is that `db::auth` no longer holds a lock
during password hashing operations. That was probably never a great
idea...
This commit is contained in:
Scott Lamb
2023-07-04 13:45:33 -07:00
parent ebcdd76084
commit 028243532a
9 changed files with 91 additions and 138 deletions

View File

@@ -368,7 +368,7 @@ fn confirm_deletion(siv: &mut Cursive, db: &Arc<db::Database>, id: i32, to_delet
for (&stream_id, stream) in l.streams_by_id() {
if stream.camera_id == id {
let Some(dir_id) = stream.sample_file_dir_id else {
continue
continue;
};
let l = zero_limits
.entry(dir_id)