aboutsummaryrefslogtreecommitdiff
path: root/src/text
diff options
context:
space:
mode:
Diffstat (limited to 'src/text')
-rw-r--r--src/text/pdf.rs2
1 files changed, 1 insertions, 1 deletions
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()
}