aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2019-11-01 22:05:15 +0100
committerTeddy Wing2019-11-01 22:05:15 +0100
commit14029dda1f4ad0f58a04c2b190bfebf6c93a9577 (patch)
treed9df17f952526a178039f3e71dcab0775139eb96 /src/main.rs
parent8a22a24b36a4f0d8c8225c23029b945bcc58619c (diff)
downloadpdf-urls-14029dda1f4ad0f58a04c2b190bfebf6c93a9577.tar.bz2
get_urls_from_pdf: Change argument type to `AsRef<Path>`
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 789e383..14eab24 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,8 +1,5 @@
-use std::path::Path;
-
use pdf_urls::get_urls_from_pdf;
fn main() {
- let path = Path::new("example.pdf");
- get_urls_from_pdf(&path);
+ get_urls_from_pdf("example.pdf");
}