update Rust dependencies

This pulls in a duplicate version of `thiserror` for now, but oh well.
This commit is contained in:
Scott Lamb
2025-01-25 10:18:15 -08:00
parent cbb2c30b56
commit dd30d5bcf8
12 changed files with 569 additions and 385 deletions

View File

@@ -9,7 +9,6 @@
use crate::db::SqlUuid;
use crate::{dir, schema};
use base::{bail, err, Error};
use cstr::cstr;
use nix::fcntl::{FlockArg, OFlag};
use nix::sys::stat::Mode;
use protobuf::Message;
@@ -24,8 +23,8 @@ const FIXED_DIR_META_LEN: usize = 512;
/// Maybe upgrades the `meta` file, returning if an upgrade happened (and thus a sync is needed).
fn maybe_upgrade_meta(dir: &dir::Fd, db_meta: &schema::DirMeta) -> Result<bool, Error> {
let tmp_path = cstr!("meta.tmp");
let meta_path = cstr!("meta");
let tmp_path = c"meta.tmp";
let meta_path = c"meta";
let mut f = crate::fs::openat(
dir.as_fd().as_raw_fd(),
meta_path,