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

Freshen up #270

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Fix lints
  • Loading branch information
Jake-Shadle committed Dec 2, 2024
commit 006e9f730af7e51d9b05738c11f6317b1f419622
8 changes: 4 additions & 4 deletions src/licenses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,28 +97,28 @@ pub struct KrateLicense<'krate> {
pub license_files: Vec<LicenseFile>,
}

impl<'krate> Ord for KrateLicense<'krate> {
impl Ord for KrateLicense<'_> {
#[inline]
fn cmp(&self, o: &Self) -> cmp::Ordering {
self.krate.cmp(o.krate)
}
}

impl<'krate> PartialOrd for KrateLicense<'krate> {
impl PartialOrd for KrateLicense<'_> {
#[inline]
fn partial_cmp(&self, o: &Self) -> Option<cmp::Ordering> {
Some(self.cmp(o))
}
}

impl<'krate> PartialEq for KrateLicense<'krate> {
impl PartialEq for KrateLicense<'_> {
#[inline]
fn eq(&self, o: &Self) -> bool {
self.cmp(o) == cmp::Ordering::Equal
}
}

impl<'krate> Eq for KrateLicense<'krate> {}
impl Eq for KrateLicense<'_> {}

pub struct Gatherer {
store: Arc<LicenseStore>,
Expand Down
2 changes: 1 addition & 1 deletion src/licenses/resolution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl<'acc> Accepted<'acc> {
}
}

impl<'acc> fmt::Display for Accepted<'acc> {
impl fmt::Display for Accepted<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "global: [")?;
for (id, val) in self.global.iter().enumerate() {
Expand Down