aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTeddy Wing2019-11-02 03:51:55 +0100
committerTeddy Wing2019-11-02 03:51:55 +0100
commitbc0141c3862c57215705bd9820473aa2a085beb0 (patch)
tree4846696e1df283ae8e3f6c9cd862ed6a8d80e3fb /src/lib.rs
parent67da99861f5ff0a65016cbc7904d37fb3aa4c013 (diff)
downloadpdf-urls-bc0141c3862c57215705bd9820473aa2a085beb0.tar.bz2
get_urls_from_pdf: Remove duplicate URLs
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c7f6e94..889a64c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -44,6 +44,8 @@ pub fn get_urls_from_pdf<P: AsRef<Path>>(path: P) -> Result<Vec<String>> {
}
}
+ urls.dedup();
+
Ok(urls)
}