Skip to content

Commit

Permalink
Merge pull request #65 from google/lifetime-of-progress-reporter
Browse files Browse the repository at this point in the history
Relax some static lifetimes.
  • Loading branch information
adetaylor authored May 7, 2024
2 parents 3638bdd + 5444990 commit 0327aa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unzip/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ use self::{
};

/// Options for unzipping.
pub struct UnzipOptions {
pub struct UnzipOptions<'a, 'b> {
/// The destination directory.
pub output_directory: Option<PathBuf>,
/// Whether to run in single-threaded mode.
pub single_threaded: bool,
/// A filename filter, optionally
pub filename_filter: Option<Box<dyn FilenameFilter + Sync>>,
pub filename_filter: Option<Box<dyn FilenameFilter + Sync + 'a>>,
/// An object to receive notifications of unzip progress.
pub progress_reporter: Box<dyn UnzipProgressReporter + Sync>,
pub progress_reporter: Box<dyn UnzipProgressReporter + Sync + 'b>,
}

/// A trait of types which wish to hear progress updates on the unzip.
Expand Down

0 comments on commit 0327aa2

Please sign in to comment.