From 14a2485a8aae4f2fd765ff0b343035f926e57f70 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 15 Dec 2018 01:32:07 +0100 Subject: [PATCH] Change signature: Link::exists(&Store) This change is necessary because we need the store now to check whether a StoreId exists. Signed-off-by: Matthias Beyer --- lib/entry/libimagentrylink/src/internal.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) }