Merge pull request #921 from matthiasbeyer/libimagentrylink/fix-exists

Fix: Link::exists() must return Result<bool> now
This commit is contained in:
Matthias Beyer 2017-04-22 12:50:49 +02:00 committed by GitHub
commit 25a35183dd

View file

@ -44,11 +44,12 @@ pub enum Link {
impl Link {
pub fn exists(&self) -> bool {
pub fn exists(&self) -> Result<bool> {
match *self {
Link::Id { ref link } => link.exists(),
Link::Annotated { ref link, .. } => link.exists(),
}
.map_err_into(LEK::StoreIdError)
}
pub fn to_str(&self) -> Result<String> {