summaryrefslogtreecommitdiffstats
path: root/libimagentrylink
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-09-02 17:16:03 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-09-02 17:16:03 +0200
commit4da331f9909323bd2f93934e7c65a245f3a2ea7b (patch)
treedaa8924f8bc373d5024344e07e17f81377396640 /libimagentrylink
parenta77cc2bab225178b44e17006bc5aeea1adc91cff (diff)
Use new StoreId::is_in_collection() interface
Diffstat (limited to 'libimagentrylink')
-rw-r--r--libimagentrylink/src/external.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/libimagentrylink/src/external.rs b/libimagentrylink/src/external.rs
index 171db965..ca095907 100644
--- a/libimagentrylink/src/external.rs
+++ b/libimagentrylink/src/external.rs
@@ -91,8 +91,10 @@ pub trait ExternalLinker : InternalLinker {
/// Check whether the StoreId starts with `/link/external/`
pub fn is_external_link_storeid(id: &StoreId) -> bool {
+ use std::path::PathBuf;
+
debug!("Checking whether this is a link/external/*: '{:?}'", id);
- id.is_in_collection(&["link", "external"])
+ id.is_in_collection(&PathBuf::from("link/external"))
}
fn get_external_link_from_file(entry: &FileLockEntry) -> Result<Url> {