mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Fix warnings
This commit is contained in:
parent
d1876489b0
commit
5675537d1f
2 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue