Skip to content

Commit 449c011

Browse files
authored
Freshen up (#270)
* Fix lints * Update yanked/vulnerable crate versions
1 parent e3af7f3 commit 449c011

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/licenses.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,28 +97,28 @@ pub struct KrateLicense<'krate> {
9797
pub license_files: Vec<LicenseFile>,
9898
}
9999

100-
impl<'krate> Ord for KrateLicense<'krate> {
100+
impl Ord for KrateLicense<'_> {
101101
#[inline]
102102
fn cmp(&self, o: &Self) -> cmp::Ordering {
103103
self.krate.cmp(o.krate)
104104
}
105105
}
106106

107-
impl<'krate> PartialOrd for KrateLicense<'krate> {
107+
impl PartialOrd for KrateLicense<'_> {
108108
#[inline]
109109
fn partial_cmp(&self, o: &Self) -> Option<cmp::Ordering> {
110110
Some(self.cmp(o))
111111
}
112112
}
113113

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

121-
impl<'krate> Eq for KrateLicense<'krate> {}
121+
impl Eq for KrateLicense<'_> {}
122122

123123
pub struct Gatherer {
124124
store: Arc<LicenseStore>,

src/licenses/resolution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl<'acc> Accepted<'acc> {
3030
}
3131
}
3232

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

0 commit comments

Comments
 (0)