Skip to content

Commit 8e3d2a1

Browse files
authored
Updating pdf crate from 0.8.1 to 0.9.0 (#58)
1 parent c7d7d9c commit 8e3d2a1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cli-interface.path="crates/cli-interface"
2121
# crates use different major versions causing issues.
2222
bytecount = "0.6.7"
2323
log = "0.4.19"
24-
pdf = "0.8.1"
24+
pdf = "0.9.0"
2525
anyhow = "1.0.72"
2626
indicatif = "0.17"
2727
crossbeam = "0.8.2"

crates/cracker/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::collections::hash_map::HashMap;
44
use anyhow::anyhow;
55
use pdf::PdfError;
66
use pdf::any::AnySync;
7-
use pdf::file::{Cache, Storage};
7+
use pdf::file::{Cache, NoLog, Storage};
88
use pdf::object::{ParseOptions, PlainRef};
99

1010
#[derive(Clone)]
@@ -21,7 +21,7 @@ type ObjectCache = SimpleCache<Result<AnySync, Arc<PdfError>>>;
2121
type StreamCache = SimpleCache<Result<Arc<[u8]>, Arc<PdfError>>>;
2222

2323
pub struct PDFCrackerState(
24-
Storage<Vec<u8>, ObjectCache, StreamCache>
24+
Storage<Vec<u8>, ObjectCache, StreamCache, NoLog>
2525
);
2626

2727
impl PDFCrackerState {
@@ -32,6 +32,7 @@ impl PDFCrackerState {
3232
ParseOptions::strict(),
3333
SimpleCache::new(),
3434
SimpleCache::new(),
35+
NoLog
3536
);
3637

3738
match res {

0 commit comments

Comments
 (0)