Merge pull request #394 from matthiasbeyer/libimagentrylink/make-external-link-id-filter-helper-pub

Rename and make public: is_link_store_id() -> is_external_link_storeid()
This commit is contained in:
Matthias Beyer 2016-05-13 14:42:07 +02:00
commit bf878c9245

View file

@ -105,7 +105,7 @@ pub trait ExternalLinker : InternalLinker {
}
/// Check whether the StoreId starts with `/link/external/`
fn is_link_store_id(id: &StoreId) -> bool {
pub fn is_external_link_storeid(id: &StoreId) -> bool {
debug!("Checking whether this is a /link/external/*: '{:?}'", id);
id.starts_with("/link/external/")
}
@ -129,7 +129,7 @@ impl ExternalLinker for Entry {
.map(|vect| {
debug!("Getting external links");
vect.into_iter()
.filter(is_link_store_id)
.filter(is_external_link_storeid)
.map(|id| {
debug!("Retrieving entry for id: '{:?}'", id);
match store.retrieve(id.clone()) {