diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-06 14:05:39 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-06 14:05:39 +0200 |
| commit | 8c3c8efa428200c67c1a6fa731faee55adf19678 (patch) | |
| tree | 40f96ad5bd9bb86c62a84bd05914afcf345c6a05 /src/extractors | |
| parent | 8799c886003d5eb0084589776ccafea809c451ff (diff) | |
cleanup with clippy
Diffstat (limited to 'src/extractors')
| -rw-r--r-- | src/extractors/pdf.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extractors/pdf.rs b/src/extractors/pdf.rs index c08c75c..b7f65d5 100644 --- a/src/extractors/pdf.rs +++ b/src/extractors/pdf.rs @@ -127,7 +127,7 @@ fn get_pdf_text(doc: &Document) -> Result<PdfText, Error> { } pub fn pdf2text(path: &str) -> Result<String, Error> { - let doc = load_pdf(&path)?; + let doc = load_pdf(path)?; if doc.is_encrypted() { return Ok("".to_string()); } |