Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/cargo/anyhow-1.0.75
Browse files Browse the repository at this point in the history
  • Loading branch information
riquito authored Dec 1, 2023
2 parents 231384c + b3e8742 commit e5699da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
override: true
components: clippy, rustfmt

- uses: Swatinem/rust-cache@v2.5.1
- uses: Swatinem/rust-cache@v2.7.1

- uses: actions-rs/cargo@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions src/cut_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ fn complement_std_range(parts_length: usize, r: &Range<usize>) -> Vec<Range<usiz
// full match => no match
(0, end) if end == parts_length => Vec::new(),
// match left side => match right side
#[allow(clippy::single_range_in_vec_init)]
(0, right) => vec![right..parts_length],
// match right side => match left side
#[allow(clippy::single_range_in_vec_init)]
(left, end) if end == parts_length => vec![0..left],
// match middle of string => match before and after
(left, right) => vec![0..left, right..parts_length],
Expand Down

0 comments on commit e5699da

Please sign in to comment.