Skip to content

Commit f024fd0

Browse files
authored
fix: clippy error + bump MSRV (#948)
* test-ci * fix: bump MSRV * fix: fix GitHub Actions trigger path * fix: clippy errors * fix: cleanup
1 parent a1f8c05 commit f024fd0

File tree

15 files changed

+27
-21
lines changed

15 files changed

+27
-21
lines changed

.github/workflows/build-events.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ on:
44
push:
55
paths:
66
- "lambda-events/**"
7+
- "Cargo.toml"
78
pull_request:
89
paths:
910
- "lambda-events/**"
11+
- "Cargo.toml"
1012

1113
jobs:
1214
build:
1315
runs-on: ubuntu-latest
1416
strategy:
1517
matrix:
1618
toolchain:
17-
- "1.70.0" # Current MSRV
19+
- "1.71.1" # Current MSRV
1820
- stable
1921
env:
2022
RUST_BACKTRACE: 1

.github/workflows/build-extension.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ on:
55
paths:
66
- 'lambda-runtime-api-client/**'
77
- 'lambda-extension/**'
8+
- 'lambda-runtime/**'
9+
- 'Cargo.toml'
810

911
pull_request:
1012
paths:
1113
- 'lambda-runtime-api-client/**'
1214
- 'lambda-extension/**'
15+
- 'lambda-runtime/**'
16+
- 'Cargo.toml'
1317

1418

1519
jobs:
@@ -18,7 +22,7 @@ jobs:
1822
strategy:
1923
matrix:
2024
toolchain:
21-
- "1.70.0" # Current MSRV
25+
- "1.71.1" # Current MSRV
2226
- stable
2327
env:
2428
RUST_BACKTRACE: 1

.github/workflows/build-runtime.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ on:
66
- 'lambda-runtime-api-client/**'
77
- 'lambda-runtime/**'
88
- 'lambda-http/**'
9+
- 'Cargo.toml'
910

1011
pull_request:
1112
paths:
1213
- 'lambda-runtime-api-client/**'
1314
- 'lambda-runtime/**'
1415
- 'lambda-http/**'
16+
- 'Cargo.toml'
1517

1618
jobs:
1719
build-runtime:
1820
runs-on: ubuntu-latest
1921
strategy:
2022
matrix:
2123
toolchain:
22-
- "1.70.0" # Current MSRV
24+
- "1.71.1" # Current MSRV
2325
- stable
2426
env:
2527
RUST_BACKTRACE: 1

lambda-events/src/custom_serde/codebuild_time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::fmt;
1010
const CODEBUILD_TIME_FORMAT: &str = "%b %e, %Y %l:%M:%S %p";
1111

1212
struct TimeVisitor;
13-
impl<'de> Visitor<'de> for TimeVisitor {
13+
impl Visitor<'_> for TimeVisitor {
1414
type Value = DateTime<Utc>;
1515

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

lambda-events/src/custom_serde/float_unix_epoch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ where
7373
d.deserialize_f64(SecondsFloatTimestampVisitor)
7474
}
7575

76-
impl<'de> de::Visitor<'de> for SecondsFloatTimestampVisitor {
76+
impl de::Visitor<'_> for SecondsFloatTimestampVisitor {
7777
type Value = DateTime<Utc>;
7878

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

lambda-events/src/custom_serde/http_method.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub fn serialize<S: Serializer>(method: &Method, ser: S) -> Result<S::Ok, S::Err
1010
}
1111

1212
struct MethodVisitor;
13-
impl<'de> Visitor<'de> for MethodVisitor {
13+
impl Visitor<'_> for MethodVisitor {
1414
type Value = Method;
1515

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

lambda-events/src/encodings/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl<'de> Deserialize<'de> for Body {
197197
{
198198
struct BodyVisitor;
199199

200-
impl<'de> Visitor<'de> for BodyVisitor {
200+
impl Visitor<'_> for BodyVisitor {
201201
type Value = Body;
202202

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

lambda-events/src/event/cloudwatch_alarms/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl Serialize for CloudWatchAlarmStateReasonData {
232232

233233
struct ReasonDataVisitor;
234234

235-
impl<'de> Visitor<'de> for ReasonDataVisitor {
235+
impl Visitor<'_> for ReasonDataVisitor {
236236
type Value = CloudWatchAlarmStateReasonData;
237237

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

lambda-events/src/event/documentdb/events/insert_event.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentK
44

55
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
66
#[serde(rename_all = "camelCase")]
7-
87
pub struct ChangeInsertEvent {
98
#[serde(rename = "_id")]
109
id: DocumentId,

lambda-events/src/event/s3/object_lambda.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ pub struct UserRequest {
8787
/// `UserIdentity` contains details about the identity that made the call to S3 Object Lambda
8888
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
8989
#[serde(rename_all = "camelCase")]
90-
9190
pub struct UserIdentity {
9291
pub r#type: String,
9392
pub principal_id: String,

0 commit comments

Comments
 (0)