summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-12-15 01:32:07 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-02-15 20:53:29 +0100
commit14a2485a8aae4f2fd765ff0b343035f926e57f70 (patch)
treec4a8e3c6706d0c81cff70b861b10c49a6ee0cf6c /lib
parent429ef9bc4c1ff6bd16188b251a59b95a5beea949 (diff)
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 <mail@beyermatthias.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/entry/libimagentrylink/src/internal.rs6
1 files 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<bool> {
+ pub fn exists(&self, store: &Store) -> Result<bool> {
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)
}