Skip to content

Commit

Permalink
refactor restore command
Browse files Browse the repository at this point in the history
  • Loading branch information
aawsome committed Jul 10, 2023
1 parent 74b6c5b commit eaa31a5
Show file tree
Hide file tree
Showing 9 changed files with 678 additions and 780 deletions.
2 changes: 1 addition & 1 deletion crates/rustic_core/src/backend/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ impl LocalDestination {
Ok(Self { path, is_file })
}

fn path(&self, item: impl AsRef<Path>) -> PathBuf {
pub(crate) fn path(&self, item: impl AsRef<Path>) -> PathBuf {
if self.is_file {
self.path.clone()
} else {
Expand Down
2 changes: 1 addition & 1 deletion crates/rustic_core/src/blob/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ pub struct TreeStreamerOptions {
}

/// [`NodeStreamer`] recursively streams all nodes of a given tree including all subtrees in-order
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct NodeStreamer<BE>
where
BE: IndexedBackend,
Expand Down
1 change: 1 addition & 0 deletions crates/rustic_core/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ pub mod init;
pub mod key;
pub mod prune;
pub mod repoinfo;
pub mod restore;
pub mod snapshots;
Loading

0 comments on commit eaa31a5

Please sign in to comment.