aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2019-11-01 21:53:31 +0100
committerTeddy Wing2019-11-01 21:53:31 +0100
commit8a22a24b36a4f0d8c8225c23029b945bcc58619c (patch)
treefbb896fb07be0a9ff8d38defa58c4f87188156a6 /src/main.rs
parent2a6496c631faba7d5f8c69c514e8db9d5f0c0b35 (diff)
downloadpdf-urls-8a22a24b36a4f0d8c8225c23029b945bcc58619c.tar.bz2
get_urls_from_pdf: Take PDF path as an argument
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3964551..789e383 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,5 +1,8 @@
+use std::path::Path;
+
use pdf_urls::get_urls_from_pdf;
fn main() {
- get_urls_from_pdf();
+ let path = Path::new("example.pdf");
+ get_urls_from_pdf(&path);
}