Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge various smaller cleanups #452

Merged
merged 7 commits into from
Jan 16, 2025

Conversation

primeos-work
Copy link
Member

This is basically just a bundling of some independent cleanups (21ccbc1 is more of an optional improvement). Details are in the individual commit messages.

This file was added in 3b33514 but isn't required anymore (was probably
only relevant for the initial development - we don't use that local test
DB anymore and this depends on the local test setup so it should be set
by the user/developer).

Signed-off-by: Michael Weiss <[email protected]>
These are the last case-related "inconsistencies" that I found.

Signed-off-by: Michael Weiss <[email protected]>
I added this exception in 697cbdb to make CI happy/green but we can now
remove it again since the last update of the `indicatif` crate in
5a64ec8.

Signed-off-by: Michael Weiss <[email protected]>
This is already done for `DEPENDENCY_PARSING_RE` but was missing for
`VERSION_REGEX` (to parse `PackageVersion` into `semver::Version`).

It's an optional performance optimization since re-compiling regexes
should be avoided [0] and, depending on the code path, we might try to
convert many `PackageVersion`s.

[0]: https://docs.rs/regex/1.11.1/regex/index.html#avoid-re-compiling-regexes-especially-in-a-loop

Signed-off-by: Michael Weiss <[email protected]>
This used to be required in the past for the `result-inspect` crate
(s. 0b757ac) but the `Result::inspect()` API was stabilized in Rust
version 1.76.0 [0] and we could drop that crate in 786404d.

[0]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.inspect

Signed-off-by: Michael Weiss <[email protected]>
This was added in a54efe7 but currently isn't required anymore so let's
drop it again.

Signed-off-by: Michael Weiss <[email protected]>
I've added this in 0451b6d but the "Added in [Rust version]" information
on the website [0] was wrong [1] (I was already suspicious as our Rust
beta CI check only recently hit this but didn't bother to look into it
until I got an unknown lint warning locally).

[0]: https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args
[1]: rust-lang/rust-clippy@db4aac6

Signed-off-by: Michael Weiss <[email protected]>
Copy link
Collaborator

@christophprokop christophprokop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the various small cleanup changes!

@christophprokop christophprokop added this pull request to the merge queue Jan 16, 2025
Merged via the queue into science-computing:master with commit 8d4d68f Jan 16, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants