summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-11-26 18:19:10 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-11-26 18:19:10 +0100
commit1ce780795a513dd473d216b03942dcafee9474c8 (patch)
treed1ac8e9d533c76c922ef7418b7a8e386ff30ba9f
parentdd388e53bb317c45eaa64b927e5cd84b3be6a3e3 (diff)
downloadimag-1ce780795a513dd473d216b03942dcafee9474c8.zip
imag-1ce780795a513dd473d216b03942dcafee9474c8.tar.gz
Do not use StoreId::local() here
-rw-r--r--lib/entry/libimagentrylink/src/external.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/entry/libimagentrylink/src/external.rs b/lib/entry/libimagentrylink/src/external.rs
index d4c6956..143188f 100644
--- a/lib/entry/libimagentrylink/src/external.rs
+++ b/lib/entry/libimagentrylink/src/external.rs
@@ -301,7 +301,7 @@ pub mod iter {
/// Check whether the StoreId starts with `/link/external/`
pub fn is_external_link_storeid<A: AsRef<StoreId> + Debug>(id: A) -> bool {
debug!("Checking whether this is a 'links/external/': '{:?}'", id);
- id.as_ref().local().starts_with("links/external")
+ id.as_ref().is_in_collection(&["links", "external"])
}
/// Implement `ExternalLinker` for `Entry`, hiding the fact that there is no such thing as an external