Skip to content

Commit

Permalink
fix: update Rust template (#6285)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericapisani committed Jan 5, 2024
1 parent c0790ea commit 10d470d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions-templates/rust/hello-world/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use simple_logger::SimpleLogger;

#[tokio::main]
async fn main() -> Result<(), Error> {
SimpleLogger::new().with_level(LevelFilter::Info).init().unwrap();
SimpleLogger::new().with_utc_timestamps().with_level(LevelFilter::Info).init().unwrap();

let func = handler_fn(my_handler);
lambda_runtime::run(func).await?;
Expand All @@ -26,4 +26,4 @@ pub(crate) async fn my_handler(event: ApiGatewayProxyRequest, _ctx: Context) ->
};

Ok(resp)
}
}

2 comments on commit 10d470d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,410
  • Package size: 422 MB
  • Number of ts-expect-error directives: 1,189

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,410
  • Package size: 422 MB
  • Number of ts-expect-error directives: 1,189

Please sign in to comment.