diff options
author | Teddy Wing | 2019-11-02 00:35:49 +0100 |
---|---|---|
committer | Teddy Wing | 2019-11-02 00:58:29 +0100 |
commit | 92f8f57b76b32c3d3e52d4b61dcdf25969f47ab7 (patch) | |
tree | 52c98e805c59aada905a8d8b3ca25a51fa5f2dae /src/main.rs | |
parent | adff229c543b765b1bfd7cb6c871d6b89617eff0 (diff) | |
download | pdf-urls-92f8f57b76b32c3d3e52d4b61dcdf25969f47ab7.tar.bz2 |
get_urls_from_pdf: Remove `unwrap`s and replace with an error type
Create a custom error type to use instead of the `unwrap`s.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 14eab24..d8bb0d5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ use pdf_urls::get_urls_from_pdf; fn main() { - get_urls_from_pdf("example.pdf"); + get_urls_from_pdf("example.pdf").unwrap(); } |