Fix: Link::exists() must return Result<bool> now

This commit is contained in:
Matthias Beyer 2017-04-22 11:58:14 +02:00
parent 03f17b8a1c
commit 365f9eb237

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> {