Use new StoreId::is_in_collection() interface
This commit is contained in:
parent
a77cc2bab2
commit
4da331f990
1 changed files with 3 additions and 1 deletions
|
@ -91,8 +91,10 @@ pub trait ExternalLinker : InternalLinker {
|
||||||
|
|
||||||
/// Check whether the StoreId starts with `/link/external/`
|
/// Check whether the StoreId starts with `/link/external/`
|
||||||
pub fn is_external_link_storeid(id: &StoreId) -> bool {
|
pub fn is_external_link_storeid(id: &StoreId) -> bool {
|
||||||
|
use std::path::PathBuf;
|
||||||
|
|
||||||
debug!("Checking whether this is a link/external/*: '{:?}'", id);
|
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> {
|
fn get_external_link_from_file(entry: &FileLockEntry) -> Result<Url> {
|
||||||
|
|
Loading…
Reference in a new issue