mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
format
This commit is contained in:
parent
2965a23dbf
commit
6d10d286aa
1 changed files with 3 additions and 7 deletions
|
|
@ -124,14 +124,10 @@ impl Finder {
|
||||||
|
|
||||||
impl Finder {
|
impl Finder {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn matched(&self) -> &BTreeMap<Url, u8> {
|
pub fn matched(&self) -> &BTreeMap<Url, u8> { &self.matched }
|
||||||
&self.matched
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn has_matched(&self) -> bool {
|
pub fn has_matched(&self) -> bool { !self.matched.is_empty() }
|
||||||
!self.matched.is_empty()
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn matched_idx(&self, url: &Url) -> Option<u8> {
|
pub fn matched_idx(&self, url: &Url) -> Option<u8> {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue