Skip to content

Commit

Permalink
Merge pull request science-computing#438 from ammernico/clippy-beta-e…
Browse files Browse the repository at this point in the history
…rror

Fix two CI regressions (new beta toolchain lint and unmaintained crate advisory)
  • Loading branch information
primeos-work authored Nov 12, 2024
2 parents 371e831 + 1e76d47 commit 81c9261
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,11 @@ ignore = [
# https://github.com/trishume/syntect/issues/537 is resolved (replace
# yaml-rust with yaml-rust2):
{ id = "RUSTSEC-2024-0320", reason = "Only an informative advisory that the crate is unmaintained and the maintainer unreachable" },

# Ignore an "INFO Unmaintained" advisory for the instant crate
# that the "indicatif" crate uses. This can be removed once
# https://github.com/console-rs/indicatif/issues/665 is resolved
# (The dependency instant is no longer maintained -
# consider switching to web-time instead):
{ id = "RUSTSEC-2024-0384", reason = "Only an informative advisory that the crate is unmaintained and the author recommends using the maintained web-time crate instead." },
]
2 changes: 1 addition & 1 deletion src/repository/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ impl Repository {
pname: &'a Option<PackageName>,
pvers: &'a Option<PackageVersionConstraint>,
matching_regexp: &'a Option<Regex>,
) -> Result<impl Iterator<Item = &Package> + 'a> {
) -> Result<impl Iterator<Item = &'a Package> + 'a> {
let mut r = self.inner.values()
.filter(move |p| {
match (pname, pvers, matching_regexp) {
Expand Down

0 comments on commit 81c9261

Please sign in to comment.