Commit graph

23 commits

Author SHA1 Message Date
1dfe877cd9 Fix typo in is_external_link_storeid() helper fn 2016-09-05 18:52:42 +02:00
c23a11060f Add debug output 2016-09-05 18:51:35 +02:00
2956df81f1 Fix: We save the url at imag.content.url, not imag.content.uri 2016-09-05 18:49:12 +02:00
ccffeb91a2 Remove StoreId::is_in_collection(), add StoreId::local()
Having a ::is_in_collection() is a nice thing, though it is _way_ better
if we just give the user of the `StoreId` object access to the local
part of the ID.

Using this new function, one can do all the actions one might need on
the Path for the actual entry without nasty copying or such.

`StoreId::is_in_collection()` can be replaced by
`StoreId::local().starts_with()` and everything is fine, as we do not
have to move a `PathBuf` object into the function anymore.
2016-09-04 10:40:38 +02:00
4da331f990 Use new StoreId::is_in_collection() interface 2016-09-02 17:16:03 +02:00
d594b7c6a2 Reimplement libimagentrylink::external::is_external_link_storeid() using StoreId::is_in_collection() 2016-08-31 09:20:08 +02:00
aeb95b1e11 Fix libimagentrylink::external::* for new StoreId interface 2016-08-28 18:41:55 +02:00
f46e8ac597 Replace unwrap with try!() 2016-08-03 11:27:25 +02:00
6f07359416 Merge pull request #534 from matthiasbeyer/libimagentrylink/tmp-fix-external-link-checking
Temporary fix: Check whether an StoreId is an external link by str::c…
2016-07-15 11:21:44 +02:00
John Sirois
a1bf76ed79 Remove unused Link::retrieve helper. 2016-07-14 20:07:30 -06:00
3f2ababdb0 Add more robust version of is_external_link_storeid() helper function 2016-07-14 21:27:36 +02:00
1dd40ca8b9 Temporary fix: Check whether an StoreId is an external link by str::contains()
This is a temporary fix as long as we do not have a clear model how we
handle internal/external StoreId types
2016-07-14 21:04:46 +02:00
f542fafec2 Remove unneccessary block 2016-06-14 11:35:42 +02:00
8c7ca95af1 Remove if-else by map() 2016-06-14 11:35:42 +02:00
0f52900456 Add missing keyword "pub" for Link type 2016-05-26 22:08:27 +02:00
Andre Bogus
981707c9c9 more style adaptations
again following clippy
2016-05-13 22:27:53 +02:00
bf878c9245 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()
2016-05-13 14:42:07 +02:00
86f3119dd5 Update dependency: url: 0.5.5 -> 1.1 2016-05-12 17:31:46 +02:00
7c9e52c25e Rename and make public: is_link_store_id() -> is_external_link_storeid() 2016-05-12 17:12:40 +02:00
b629d0b8f1 Merge pull request #367 from matthiasbeyer/unwrap_err
Unwrap err
2016-04-21 15:08:36 +02:00
e0988c5f76 Remove unneeded deref() call 2016-04-21 13:19:37 +02:00
5d2950b7df libimagentrylink: Replace .err().unwrap() with .unwrap_err() 2016-04-20 21:45:27 +02:00
33aa56019f libimaglink -> libimagentrylink 2016-04-17 12:22:13 +02:00
Renamed from libimaglink/src/external.rs (Browse further)