Fix: Link::exists() must return Result<bool> now
This commit is contained in:
parent
03f17b8a1c
commit
365f9eb237
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