mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
reverted more spacing
This commit is contained in:
parent
e749c455bf
commit
4c9c6d9d83
3 changed files with 23 additions and 43 deletions
|
|
@ -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()) }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()) }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue