reverted more spacing

This commit is contained in:
AidanV 2024-04-20 11:30:14 -07:00
parent e749c455bf
commit 4c9c6d9d83
3 changed files with 23 additions and 43 deletions

View file

@ -59,7 +59,5 @@ impl Cha {
}
impl<T: Into<yazi_shared::fs::Cha>> Cast<T> for Cha {
fn cast(lua: &Lua, data: T) -> mlua::Result<AnyUserData> {
lua.create_any_userdata(data.into())
}
fn cast(lua: &Lua, data: T) -> mlua::Result<AnyUserData> { lua.create_any_userdata(data.into()) }
}

View file

@ -25,7 +25,5 @@ impl File {
}
impl<T: Into<yazi_shared::fs::File>> Cast<T> for File {
fn cast(lua: &Lua, data: T) -> mlua::Result<AnyUserData> {
lua.create_any_userdata(data.into())
}
fn cast(lua: &Lua, data: T) -> mlua::Result<AnyUserData> { lua.create_any_userdata(data.into()) }
}

View file

@ -94,44 +94,28 @@ impl Cha {
impl Cha {
#[inline]
pub fn is_dir(&self) -> bool {
self.kind.contains(ChaKind::DIR)
}
pub fn is_dir(&self) -> bool { self.kind.contains(ChaKind::DIR) }
#[inline]
pub fn is_hidden(&self) -> bool {
self.kind.contains(ChaKind::HIDDEN)
}
pub fn is_hidden(&self) -> bool { self.kind.contains(ChaKind::HIDDEN) }
#[inline]
pub fn is_link(&self) -> bool {
self.kind.contains(ChaKind::LINK)
}
pub fn is_link(&self) -> bool { self.kind.contains(ChaKind::LINK) }
#[inline]
pub fn is_orphan(&self) -> bool {
self.kind.contains(ChaKind::ORPHAN)
}
pub fn is_orphan(&self) -> bool { self.kind.contains(ChaKind::ORPHAN) }
#[inline]
pub fn is_block_device(&self) -> bool {
self.kind.contains(ChaKind::BLOCK_DEVICE)
}
pub fn is_block_device(&self) -> bool { self.kind.contains(ChaKind::BLOCK_DEVICE) }
#[inline]
pub fn is_char_device(&self) -> bool {
self.kind.contains(ChaKind::CHAR_DEVICE)
}
pub fn is_char_device(&self) -> bool { self.kind.contains(ChaKind::CHAR_DEVICE) }
#[inline]
pub fn is_fifo(&self) -> bool {
self.kind.contains(ChaKind::FIFO)
}
pub fn is_fifo(&self) -> bool { self.kind.contains(ChaKind::FIFO) }
#[inline]
pub fn is_socket(&self) -> bool {
self.kind.contains(ChaKind::SOCKET)
}
pub fn is_socket(&self) -> bool { self.kind.contains(ChaKind::SOCKET) }
#[inline]
pub fn is_exec(&self) -> bool {