mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-04 23:02:32 -05:00
update some Rust dependencies
I didn't go to quite the latest version of everything, in an effort to minimize duplicates in the cargo tree.
This commit is contained in:
@@ -10,6 +10,7 @@ use crate::dir;
|
||||
use crate::schema;
|
||||
use base::Error;
|
||||
use rusqlite::params;
|
||||
use std::os::fd::AsFd as _;
|
||||
use std::os::unix::io::AsRawFd;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
@@ -71,9 +72,9 @@ pub fn run(_args: &super::Args, tx: &rusqlite::Transaction) -> Result<(), Error>
|
||||
let from_path = super::UuidPath::from(sample_file_uuid.0);
|
||||
let to_path = crate::dir::CompositeIdPath::from(id);
|
||||
if let Err(e) = nix::fcntl::renameat(
|
||||
Some(d.fd.as_raw_fd()),
|
||||
Some(d.fd.as_fd().as_raw_fd()),
|
||||
&from_path,
|
||||
Some(d.fd.as_raw_fd()),
|
||||
Some(d.fd.as_fd().as_raw_fd()),
|
||||
&to_path,
|
||||
) {
|
||||
if e == nix::Error::ENOENT {
|
||||
|
||||
Reference in New Issue
Block a user