Skip to content

Commit

Permalink
cargo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed Sep 10, 2024
1 parent 03d90a0 commit 729be01
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 11 deletions.
1 change: 0 additions & 1 deletion rar-common/src/database/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use chrono::Duration;
use libc::PATH_MAX;
use linked_hash_set::LinkedHashSet;

use nix::features;
#[cfg(feature = "pcre2")]
use pcre2::bytes::Regex;
use serde::{Deserialize, Deserializer, Serialize};
Expand Down
2 changes: 1 addition & 1 deletion rar-common/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
io,
os::{
fd::AsRawFd,
unix::fs::{MetadataExt, PermissionsExt},
unix::fs::{MetadataExt},
},
path::{Path, PathBuf},
};
Expand Down
4 changes: 2 additions & 2 deletions xtask/src/configure.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env::{self, current_exe};
use std::env::{self};
use std::fs::{self, File};
use std::io::{self, BufRead, BufReader, Read, Write};
use std::io::{self, BufRead, BufReader, Write};
use std::path::Path;

use anyhow::Context;
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/deploy/debian.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::process::{Command, ExitStatus, Stdio};
use std::process::{Command, ExitStatus};

use anyhow::Context;

Expand Down
1 change: 0 additions & 1 deletion xtask/src/deploy/redhat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::{
util::{get_os, OsTarget},
};

use super::setup_maint_scripts;

pub fn make_rpm(
os: Option<OsTarget>,
Expand Down
3 changes: 1 addition & 2 deletions xtask/src/install/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use std::os::fd::AsRawFd;
use std::path::{Path, PathBuf};
use std::str::FromStr;

use capctl::{Cap, CapSet, CapState};
use clap::Command;
use capctl::{Cap, CapSet};
use nix::sys::stat::{fchmod, Mode};
use nix::unistd::{Gid, Uid};
use strum::EnumIs;
Expand Down
4 changes: 2 additions & 2 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ mod deploy;
mod install;
pub mod util;

use std::{ffi::CString, process::exit};
use std::{process::exit};

use clap::Parser;
use tracing::{error, warn, Level};
use tracing::{error, Level};
use tracing_subscriber::util::SubscriberInitExt;
use util::OsTarget;

Expand Down
1 change: 0 additions & 1 deletion xtask/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use capctl::CapState;
use clap::ValueEnum;
use nix::{
libc::{FS_IOC_GETFLAGS, FS_IOC_SETFLAGS},
unistd::geteuid,
};
use serde::{Deserialize, Serialize};
use serde_json::Value;
Expand Down

0 comments on commit 729be01

Please sign in to comment.