Skip to content

Commit

Permalink
Migrate to Rust 1.82
Browse files Browse the repository at this point in the history
  • Loading branch information
russellbanks committed Oct 17, 2024
1 parent 4cbedc1 commit be9ed86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands/remove_dead_versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ impl RemoveDeadVersions {
progress_bar.enable_steady_tick(SPINNER_TICK_RATE);

for version in versions.iter().filter(|&version| {
self.before.as_ref().map_or(true, |before| version < before)
&& self.after.as_ref().map_or(true, |after| version > after)
self.before.as_ref().is_none_or(|before| version < before)
&& self.after.as_ref().is_none_or(|after| version > after)
}) {
if progress_bar.is_finished() {
progress_bar.reset();
Expand Down
2 changes: 1 addition & 1 deletion src/types/package_identifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub enum PackageIdentifierError {
mod tests {
use crate::types::package_identifier::{PackageIdentifier, PackageIdentifierError};
use const_format::str_repeat;
use itertools::repeat_n;
use std::iter::repeat_n;

// Replace itertools::intersperse with std::iter::Intersperse once it's stabilised

Expand Down

0 comments on commit be9ed86

Please sign in to comment.