diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-10-15 11:36:25 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-10-15 11:36:25 +0200 |
commit | a796de322aea91993549da25ad60aa9435d1f5ae (patch) | |
tree | ef1d3bf0d7b2e4336709542cae4125cd4aee0d4a /libimagentrylink | |
parent | b64eae9654e930f6683bdc6300e87e82b1e53901 (diff) |
Fix bug: Links were swapped
Diffstat (limited to 'libimagentrylink')
-rw-r--r-- | libimagentrylink/src/internal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libimagentrylink/src/internal.rs b/libimagentrylink/src/internal.rs index 4f294035..3110ff79 100644 --- a/libimagentrylink/src/internal.rs +++ b/libimagentrylink/src/internal.rs @@ -165,13 +165,13 @@ impl InternalLinker for Entry { link.get_internal_links() .and_then(|links| { debug!("Rewriting own links for {:?}, without {:?}", other_loc, own_loc); - rewrite_links(self.get_header_mut(), links.filter(|l| *l != own_loc)) + rewrite_links(link.get_header_mut(), links.filter(|l| *l != own_loc)) }) .and_then(|_| { self.get_internal_links() .and_then(|links| { debug!("Rewriting own links for {:?}, without {:?}", own_loc, other_loc); - rewrite_links(link.get_header_mut(), links.filter(|l| *l != other_loc)) + rewrite_links(self.get_header_mut(), links.filter(|l| *l != other_loc)) }) }) } |