Skip to content

Commit cd60224

Browse files
committed
Fix clippy::needless-lifetimes in bootstrap
1 parent 618b0cb commit cd60224

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Diff for: src/bootstrap/src/core/build_steps/tool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ tool_extended!((self, builder),
10961096
Rustfmt, "src/tools/rustfmt", "rustfmt", stable=true, add_bins_to_sysroot = ["rustfmt", "cargo-fmt"];
10971097
);
10981098

1099-
impl<'a> Builder<'a> {
1099+
impl Builder<'_> {
11001100
/// Gets a `BootstrapCommand` which is ready to run `tool` in `stage` built for
11011101
/// `host`.
11021102
pub fn tool_cmd(&self, tool: Tool) -> BootstrapCommand {

Diff for: src/bootstrap/src/core/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub struct Builder<'a> {
6363
pub paths: Vec<PathBuf>,
6464
}
6565

66-
impl<'a> Deref for Builder<'a> {
66+
impl Deref for Builder<'_> {
6767
type Target = Build;
6868

6969
fn deref(&self) -> &Self::Target {

Diff for: src/bootstrap/src/core/config/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ impl<'de> Deserialize<'de> for RustOptimize {
996996

997997
struct OptimizeVisitor;
998998

999-
impl<'de> serde::de::Visitor<'de> for OptimizeVisitor {
999+
impl serde::de::Visitor<'_> for OptimizeVisitor {
10001000
type Value = RustOptimize;
10011001

10021002
fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
@@ -1071,7 +1071,7 @@ impl<'de> Deserialize<'de> for LldMode {
10711071
{
10721072
struct LldModeVisitor;
10731073

1074-
impl<'de> serde::de::Visitor<'de> for LldModeVisitor {
1074+
impl serde::de::Visitor<'_> for LldModeVisitor {
10751075
type Value = LldMode;
10761076

10771077
fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {

Diff for: src/bootstrap/src/utils/cache.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ impl PartialEq<str> for Interned<String> {
3939
*self == other
4040
}
4141
}
42-
impl<'a> PartialEq<&'a str> for Interned<String> {
42+
impl PartialEq<&str> for Interned<String> {
4343
fn eq(&self, other: &&str) -> bool {
4444
**self == **other
4545
}
4646
}
47-
impl<'a, T> PartialEq<&'a Interned<T>> for Interned<T> {
47+
impl<T> PartialEq<&Interned<T>> for Interned<T> {
4848
fn eq(&self, other: &&Self) -> bool {
4949
self.0 == other.0
5050
}
5151
}
52-
impl<'a, T> PartialEq<Interned<T>> for &'a Interned<T> {
52+
impl<T> PartialEq<Interned<T>> for &Interned<T> {
5353
fn eq(&self, other: &Interned<T>) -> bool {
5454
self.0 == other.0
5555
}

0 commit comments

Comments
 (0)