Skip to content

Commit

Permalink
clippy: needless_lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 25, 2024
1 parent 378edca commit 0937f71
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ impl DerefMut for TaskGuard<'_> {
}
}

impl<'l> AggregationNodeGuard for TaskGuard<'l> {
impl AggregationNodeGuard for TaskGuard<'_> {
type Data = Aggregated;
type NodeRef = TaskId;
type DataChange = TaskChange;
Expand Down
2 changes: 1 addition & 1 deletion turbopack/crates/turbo-tasks/src/debug/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ pub enum ValueDebugFormatString<'a> {
),
}

impl<'a> ValueDebugFormatString<'a> {
impl ValueDebugFormatString<'_> {
/// Convert the `ValueDebugFormatString` into a `String`.
///
/// This can fail when resolving `Vc` types.
Expand Down
4 changes: 2 additions & 2 deletions turbopack/crates/turbopack-bench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,10 @@ fn insert_code(

static CHANGE_TIMEOUT_MESSAGE: &str = "update was not registered by bundler";

async fn make_change<'a>(
async fn make_change(
module: &Path,
bundler: &dyn Bundler,
guard: &mut PageGuard<'a>,
guard: &mut PageGuard<'_>,
location: CodeLocation,
timeout_duration: Duration,
measurement: &WallTime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ struct AnalysisState<'a> {
url_rewrite_behavior: Option<UrlRewriteBehavior>,
}

impl<'a> AnalysisState<'a> {
impl AnalysisState<'_> {
/// Links a value to the graph, returning the linked value.
async fn link_value(&self, value: JsValue, attributes: &ImportAttributes) -> Result<JsValue> {
let fun_args_values = self.fun_args_values.lock().clone();
Expand Down

0 comments on commit 0937f71

Please sign in to comment.