Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
- name: Run Cargo Fmt
run: cargo fmt --all -- --check

typos:
name: Typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Check for typos
uses: crate-ci/typos@80c8a4945eec0f6d464eaf9e65ed98ef085283d1 # v1.38.1

clippy:
name: Clippy
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion crates/backend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ All notable changes to this project will be documented in this file.
### Fixed

- Add #[non_exhaustive] to pub structs which may be extended in future ([#293](https://github.com/rustic-rs/rustic_core/pull/293))
- *(backend)* [**breaking**] Use correct merge stratgy for repository options ([#291](https://github.com/rustic-rs/rustic_core/pull/291))
- *(backend)* [**breaking**] Use correct merge strategy for repository options ([#291](https://github.com/rustic-rs/rustic_core/pull/291))

### Other

Expand Down
2 changes: 1 addition & 1 deletion crates/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ All notable changes to this project will be documented in this file.

### Rest/rclone

- Make # of retries cusomizable and use sensible default
- Make # of retries customizable and use sensible default

### Restore

Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/commands/prune.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ impl PackInfo {

if let Some(first_needed) = first_needed {
// The pack is actually needed.
// We reprocess the blobs up to the first needed one and mark all blobs which are genarally needed as used.
// We reprocess the blobs up to the first needed one and mark all blobs which are generally needed as used.
for blob in &pack.blobs[..first_needed] {
match used_ids.get_mut(&blob.id) {
None | Some(0) => {} // already correctly marked
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/commands/restore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ impl RestorePlan {

/// Get a list of all pack files needed to perform the restore
///
/// This can be used e.g. to warm-up those pack files before doing the atual restore.
/// This can be used e.g. to warm-up those pack files before doing the actual restore.
#[must_use]
pub fn to_packs(&self) -> Vec<PackId> {
self.r
Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ impl<T: Clone> FindUniqueResults<T> {
}
}

pub trait FindUniqeMultiple: Iterator + Sized
pub trait FindUniqueMultiple: Iterator + Sized
where
Self::Item: Clone,
{
Expand All @@ -327,4 +327,4 @@ where
}
}

impl<I: Iterator> FindUniqeMultiple for I where I::Item: Clone {}
impl<I: Iterator> FindUniqueMultiple for I where I::Item: Clone {}
2 changes: 1 addition & 1 deletion crates/core/src/repofile/snapshotfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::{
backend::{FileType, FindInBackend, decrypt::DecryptReadBackend},
blob::tree::TreeId,
error::{ErrorKind, RusticError, RusticResult},
id::{FindUniqeMultiple, FindUniqueResults, constants::HEX_LEN},
id::{FindUniqueMultiple, FindUniqueResults, constants::HEX_LEN},
impl_repofile,
progress::Progress,
repofile::RepoFile,
Expand Down
8 changes: 8 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[files]
extend-exclude = [
"crates/core/tests/integration/snapshots/integration__integration__check__repo-mixed.tar.gz.snap",
]

[default.extend-words]
dbe = "dbe"
tpe = "tpe"