diff options
author | Teddy Wing | 2019-11-01 22:05:15 +0100 |
---|---|---|
committer | Teddy Wing | 2019-11-01 22:05:15 +0100 |
commit | 14029dda1f4ad0f58a04c2b190bfebf6c93a9577 (patch) | |
tree | d9df17f952526a178039f3e71dcab0775139eb96 /src/lib.rs | |
parent | 8a22a24b36a4f0d8c8225c23029b945bcc58619c (diff) | |
download | pdf-urls-14029dda1f4ad0f58a04c2b190bfebf6c93a9577.tar.bz2 |
get_urls_from_pdf: Change argument type to `AsRef<Path>`
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ use std::path::Path; use lopdf::{Document, Object}; -pub fn get_urls_from_pdf(path: &Path) { +pub fn get_urls_from_pdf<P: AsRef<Path>>(path: P) { let doc = Document::load(path).unwrap(); for (_, obj) in doc.objects { |