diff options
Diffstat (limited to 'src/pagespec.rs')
-rw-r--r-- | src/pagespec.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pagespec.rs b/src/pagespec.rs index e3f617d..7af2acd 100644 --- a/src/pagespec.rs +++ b/src/pagespec.rs @@ -64,7 +64,7 @@ pub enum PageSpecError { #[derive(Debug)] pub enum Expr { Glob(String), - LinksHereFunc, + LinksHereFunc(String), PageFunc(String), Negate(Box<Expr>), Op(Box<Expr>, OpCode, Box<Expr>), @@ -75,7 +75,7 @@ impl Expr { trace!("Expr::matches: path={:?} self={:?}", path, self); match self { Self::Glob(glob) => glob_matches(glob, path), - Self::LinksHereFunc => links_here(site, container, path), // FIXME: check its page + Self::LinksHereFunc(glob) => links_here(site, container, path, glob), Self::PageFunc(glob) => page_matches(site, container, glob, path), // FIXME: check its page Self::Negate(expr) => !expr.matches(site, container, path), Self::Op(left, op, right) => match op { @@ -148,7 +148,7 @@ fn glob_matches_helper(mut glob: &[char], mut path: &[char]) -> bool { glob.is_empty() && path.is_empty() } -fn links_here(site: &Site, container: &Path, path: &str) -> bool { +fn links_here(site: &Site, container: &Path, path: &str, _glob: &str) -> bool { trace!( "links_here: container={} path={:?}", container.display(), |