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/` /// 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); debug!("Checking whether this is a /link/external/*: '{:?}'", id);
id.starts_with("/link/external/") id.starts_with("/link/external/")
} }
@ -129,7 +129,7 @@ impl ExternalLinker for Entry {
.map(|vect| { .map(|vect| {
debug!("Getting external links"); debug!("Getting external links");
vect.into_iter() vect.into_iter()
.filter(is_link_store_id) .filter(is_external_link_storeid)
.map(|id| { .map(|id| {
debug!("Retrieving entry for id: '{:?}'", id); debug!("Retrieving entry for id: '{:?}'", id);
match store.retrieve(id.clone()) { match store.retrieve(id.clone()) {