Fix warnings

This commit is contained in:
sxyazi 2026-05-22 16:29:53 +08:00
parent d1876489b0
commit 5675537d1f
2 changed files with 3 additions and 2 deletions

View file

@ -59,6 +59,7 @@ impl Cha {
where where
U: AsUrl, U: AsUrl,
{ {
#[allow(unused_mut)]
let mut kind = ChaKind::DUMMY; let mut kind = ChaKind::DUMMY;
let mode = r#type.map(ChaMode::from_bare).unwrap_or_default(); let mode = r#type.map(ChaMode::from_bare).unwrap_or_default();

View file

@ -52,9 +52,9 @@ impl TryFrom<Attrs> for std::fs::FileTimes {
impl TryFrom<Attrs> for std::fs::Permissions { impl TryFrom<Attrs> for std::fs::Permissions {
type Error = (); type Error = ();
fn try_from(value: Attrs) -> Result<Self, Self::Error> { fn try_from(_value: Attrs) -> Result<Self, Self::Error> {
#[cfg(unix)] #[cfg(unix)]
if let Some(mode) = value.mode { if let Some(mode) = _value.mode {
return Ok(mode.into()); return Ok(mode.into());
} }