Merge pull request #921 from matthiasbeyer/libimagentrylink/fix-exists
Fix: Link::exists() must return Result<bool> now
This commit is contained in:
commit
25a35183dd
1 changed files with 2 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue