From 8a22a24b36a4f0d8c8225c23029b945bcc58619c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 1 Nov 2019 21:53:31 +0100 Subject: get_urls_from_pdf: Take PDF path as an argument --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.rs') 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); } -- cgit v1.2.3