diff options
| author | Teddy Wing | 2019-11-02 03:51:55 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2019-11-02 03:51:55 +0100 | 
| commit | bc0141c3862c57215705bd9820473aa2a085beb0 (patch) | |
| tree | 4846696e1df283ae8e3f6c9cd862ed6a8d80e3fb /src | |
| parent | 67da99861f5ff0a65016cbc7904d37fb3aa4c013 (diff) | |
| download | pdf-urls-bc0141c3862c57215705bd9820473aa2a085beb0.tar.bz2 | |
get_urls_from_pdf: Remove duplicate URLs
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 2 | 
1 files changed, 2 insertions, 0 deletions
@@ -44,6 +44,8 @@ pub fn get_urls_from_pdf<P: AsRef<Path>>(path: P) -> Result<Vec<String>> {          }      } +    urls.dedup(); +      Ok(urls)  }  | 
