Skip to content

Commit 43968e0

Browse files
authored
Merge pull request #1984 from tottoto/remove-needless-lifetime
chore: remove needless lifetime
2 parents 5dcad0c + 40bbba4 commit 43968e0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

crates/volta-core/src/platform/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl<T> Sourced<T> {
8989
}
9090
}
9191

92-
impl<'a, T> Sourced<&'a T>
92+
impl<T> Sourced<&T>
9393
where
9494
T: Clone,
9595
{

crates/volta-core/src/run/parser.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ pub enum GlobalCommand<'a> {
274274
Upgrade(UpgradeArgs<'a>),
275275
}
276276

277-
impl<'a> GlobalCommand<'a> {
277+
impl GlobalCommand<'_> {
278278
pub fn executor(self, platform: &PlatformSpec) -> Fallible<Executor> {
279279
match self {
280280
GlobalCommand::Install(cmd) => cmd.executor(platform),
@@ -294,7 +294,7 @@ pub struct InstallArgs<'a> {
294294
tools: Vec<&'a OsStr>,
295295
}
296296

297-
impl<'a> InstallArgs<'a> {
297+
impl InstallArgs<'_> {
298298
/// Convert these global install arguments into an executor for the command
299299
///
300300
/// If there are multiple packages specified to install, then they will be broken out into
@@ -329,7 +329,7 @@ pub struct UninstallArgs<'a> {
329329
tools: Vec<&'a OsStr>,
330330
}
331331

332-
impl<'a> UninstallArgs<'a> {
332+
impl UninstallArgs<'_> {
333333
/// Convert the tools into an executor for the uninstall command
334334
///
335335
/// Since the packages are sandboxed, each needs to be uninstalled separately
@@ -355,7 +355,7 @@ pub struct UpgradeArgs<'a> {
355355
tools: Vec<&'a OsStr>,
356356
}
357357

358-
impl<'a> UpgradeArgs<'a> {
358+
impl UpgradeArgs<'_> {
359359
/// Convert these global upgrade arguments into an executor for the command
360360
///
361361
/// If there are multiple packages specified to upgrade, then they will be broken out into
@@ -428,7 +428,7 @@ pub struct LinkArgs<'a> {
428428
tools: Vec<&'a OsStr>,
429429
}
430430

431-
impl<'a> LinkArgs<'a> {
431+
impl LinkArgs<'_> {
432432
pub fn executor(self, platform: Platform, project_name: Option<String>) -> Fallible<Executor> {
433433
if self.tools.is_empty() {
434434
// If no tools are specified, then this is a bare link command, linking the current

crates/volta-core/src/version/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub mod version_serde {
116116

117117
struct VersionVisitor;
118118

119-
impl<'de> Visitor<'de> for VersionVisitor {
119+
impl Visitor<'_> for VersionVisitor {
120120
type Value = Version;
121121

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

0 commit comments

Comments
 (0)