Skip to content

Commit

Permalink
chore: cargo clippy auto fix (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabetti1720 authored Nov 29, 2024
1 parent 30e0cec commit b8ba452
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion llrt/src/minimal_tracer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl<'a> StringVisitor<'a> {
}
}

impl<'a> Visit for StringVisitor<'a> {
impl Visit for StringVisitor<'_> {
fn record_debug(&mut self, field: &Field, value: &dyn fmt::Debug) {
if field.name() == "message" {
write!(self.string, "{value:?} ").unwrap();
Expand Down
2 changes: 1 addition & 1 deletion llrt_core/src/runtime_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ struct LambdaContext<'js, 'a> {
pub lambda_environment: &'a LambdaEnvironment,
}

impl<'js, 'a> IntoJs<'js> for LambdaContext<'js, 'a> {
impl<'js> IntoJs<'js> for LambdaContext<'js, '_> {
fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>> {
let obj = Object::new(ctx.clone())?;
obj.set("awsRequestId", self.aws_request_id)?;
Expand Down
4 changes: 2 additions & 2 deletions modules/llrt_events/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ impl<'js> EventKey<'js> {
}
}

impl<'js> Eq for EventKey<'js> {}
impl Eq for EventKey<'_> {}

impl<'js> PartialEq for EventKey<'js> {
impl PartialEq for EventKey<'_> {
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(EventKey::Symbol(symbol1), EventKey::Symbol(symbol2)) => symbol1 == symbol2,
Expand Down
2 changes: 1 addition & 1 deletion modules/llrt_perf_hooks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn to_json(ctx: Ctx<'_>) -> Result<Object<'_>> {

struct PerfInitedUserData;

unsafe impl<'js> JsLifetime<'js> for PerfInitedUserData {
unsafe impl JsLifetime<'_> for PerfInitedUserData {
type Changed<'to> = PerfInitedUserData;
}

Expand Down

0 comments on commit b8ba452

Please sign in to comment.