diff --git a/lib/entry/libimagentrylink/src/internal.rs b/lib/entry/libimagentrylink/src/internal.rs index 65277095..d9c13ddb 100644 --- a/lib/entry/libimagentrylink/src/internal.rs +++ b/lib/entry/libimagentrylink/src/internal.rs @@ -45,10 +45,10 @@ pub enum Link { impl Link { - pub fn exists(&self) -> Result { + pub fn exists(&self, store: &Store) -> Result { match *self { - Link::Id { ref link } => link.exists(), - Link::Annotated { ref link, .. } => link.exists(), + Link::Id { ref link } => store.exists(link.clone()), + Link::Annotated { ref link, .. } => store.exists(link.clone()), } .map_err(From::from) }