Skip to content

Commit

Permalink
fix: clippy lints
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Nov 29, 2024
1 parent 6bcf3e2 commit 37cdbe5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/core/src/blob/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ where
}

// TODO: This is not parallel at the moment...
impl<'a, BE, I> Iterator for NodeStreamer<'a, BE, I>
impl<BE, I> Iterator for NodeStreamer<'_, BE, I>
where
BE: DecryptReadBackend,
I: ReadGlobalIndex,
Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/commands/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub(crate) fn check_repository<P: ProgressBars, S: Open>(
}
}

let index_collector = check_packs(be, hot_be, pb)?;
let index_collector = check_packs(be, hot_be.as_ref(), pb)?;

if let Some(cache) = &cache {
let p = pb.progress_spinner("cleaning up packs from cache...");
Expand Down Expand Up @@ -453,7 +453,7 @@ fn check_cache_files(
/// The index collector
fn check_packs(
be: &impl DecryptReadBackend,
hot_be: &Option<impl ReadBackend>,
hot_be: Option<&impl ReadBackend>,
pb: &impl ProgressBars,
) -> RusticResult<IndexCollector> {
let mut packs = HashMap::new();
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/vfs/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub(crate) struct FormattedSnapshot<'a> {
pub(crate) time_format: &'a str,
}

impl<'a> FormatKey for FormattedSnapshot<'a> {
impl FormatKey for FormattedSnapshot<'_> {
fn fmt(&self, key: &str, f: &mut fmt::Formatter<'_>) -> Result<(), FormatKeyError> {
match key {
"id" => write!(f, "{}", self.snap.id),
Expand Down
1 change: 1 addition & 0 deletions crates/core/tests/command_input.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#[cfg(not(windows))]
use std::fs::File;

Expand Down
1 change: 1 addition & 0 deletions crates/core/tests/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use rstest::{fixture, rstest};

use rustic_core::{ErrorKind, RusticError, Severity, Status};
Expand Down
1 change: 1 addition & 0 deletions crates/core/tests/keys.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use std::{fs::File, io::Read, sync::Arc};

use anyhow::Result;
Expand Down

0 comments on commit 37cdbe5

Please sign in to comment.