Fix bug: Links were swapped

This commit is contained in:
Matthias Beyer 2016-10-15 11:36:25 +02:00
parent b64eae9654
commit a796de322a
1 changed files with 2 additions and 2 deletions

View File

@ -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))
})
})
}