use crate::link::Link;
pub(crate) fn merge_links<'a>(
existing_links: Vec<Link<'a>>,
new_links: &mut Vec<Link<'a>>,
) -> Vec<Link<'a>> {
let mut buf = existing_links.clone();
buf.append(new_links);
buf.sort();
buf.dedup();
buf
}
#[cfg(test)]
mod test {
}