Remove needless .to_owned() for link

This commit is contained in:
Joshua Nelson 2020-07-05 22:10:18 -04:00
parent 08deb863bd
commit 89ae59a360

View File

@ -695,9 +695,9 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
// This is an anchor to an element of the current page, nothing to do in here!
continue;
}
(parts[0].to_owned(), Some(parts[1].to_owned()))
(parts[0], Some(parts[1].to_owned()))
} else {
(parts[0].to_owned(), None)
(parts[0], None)
};
let resolved_self;
let mut path_str;