From 8c3c8efa428200c67c1a6fa731faee55adf19678 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 6 Jul 2023 14:05:39 +0200 Subject: cleanup with clippy --- src/text/pdf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/text') diff --git a/src/text/pdf.rs b/src/text/pdf.rs index efa441f..4413b78 100644 --- a/src/text/pdf.rs +++ b/src/text/pdf.rs @@ -1,5 +1,5 @@ use crate::extractors::pdf; pub fn get_text(path : &str) -> String { - pdf::pdf2text(path).ok().unwrap_or_else(|| "".to_string()) + pdf::pdf2text(path).ok().unwrap_or_default() } -- cgit v1.2.3-70-g09d2