Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Oct 1, 2023
1 parent 2965a23 commit 6d10d28
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions core/src/manager/finder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use shared::Url;
use crate::files::Files;

pub struct Finder {
query: Regex,
query: Regex,
matched: BTreeMap<Url, u8>,
version: u64,
}
Expand Down Expand Up @@ -124,14 +124,10 @@ impl Finder {

impl Finder {
#[inline]
pub fn matched(&self) -> &BTreeMap<Url, u8> {
&self.matched
}
pub fn matched(&self) -> &BTreeMap<Url, u8> { &self.matched }

#[inline]
pub fn has_matched(&self) -> bool {
!self.matched.is_empty()
}
pub fn has_matched(&self) -> bool { !self.matched.is_empty() }

#[inline]
pub fn matched_idx(&self, url: &Url) -> Option<u8> {
Expand Down

0 comments on commit 6d10d28

Please sign in to comment.