Skip to content

Commit 3046b0a

Browse files
authored
fix new clippy lint introduced in rust 1.89.0 (#1509)
* Fix clippy in registry.rs * Fix clippy in vs_instances.rs
1 parent b8959a2 commit 3046b0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/windows/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl RegistryKey {
7474
}
7575
}
7676

77-
pub fn iter(&self) -> Iter {
77+
pub fn iter(&self) -> Iter<'_> {
7878
Iter {
7979
idx: 0..,
8080
key: self,

src/windows/vs_instances.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub enum VsInstance {
1212
}
1313

1414
impl VsInstance {
15-
pub fn installation_name(&self) -> Option<Cow<str>> {
15+
pub fn installation_name(&self) -> Option<Cow<'_, str>> {
1616
match self {
1717
VsInstance::Com(s) => s
1818
.installation_name()
@@ -30,7 +30,7 @@ impl VsInstance {
3030
}
3131
}
3232

33-
pub fn installation_version(&self) -> Option<Cow<str>> {
33+
pub fn installation_version(&self) -> Option<Cow<'_, str>> {
3434
match self {
3535
VsInstance::Com(s) => s
3636
.installation_version()

0 commit comments

Comments
 (0)