Skip to content

Commit

Permalink
Freshen up (#270)
Browse files Browse the repository at this point in the history
* Fix lints

* Update yanked/vulnerable crate versions
  • Loading branch information
Jake-Shadle authored Dec 2, 2024
1 parent e3af7f3 commit 449c011
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

0 comments on commit 449c011

Please sign in to comment.