Skip to content

Commit 36d211b

Browse files
committed
fix documentation and lint workflow errors.
1 parent 1757858 commit 36d211b

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

lambda-events/src/custom_serde/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ where
5858
}
5959

6060
/// Deserializes any `Default` type, mapping JSON `null` to `T::default()`.
61-
///
62-
/// **Note** null-to-empty semantics are usually clear for container types (Map, Vec, etc).
63-
/// For most other data types, prefer modeling fields as Option<T> with #[serde(default)]
64-
/// instead of using this deserializer. Option preserves information about the message
65-
/// for the application, and default semantics for the target data type may change
61+
///
62+
/// **Note** null-to-empty semantics are usually clear for container types (Map, Vec, etc).
63+
/// For most other data types, prefer modeling fields as ```Option<T>``` with #[serde(default)]
64+
/// instead of using this deserializer. Option preserves information about the message
65+
/// for the application, and default semantics for the target data type may change
6666
/// over time without warning.
6767
pub(crate) fn deserialize_nullish<'de, D, T>(deserializer: D) -> Result<T, D::Error>
6868
where
@@ -77,7 +77,7 @@ where
7777
#[allow(deprecated)]
7878
mod test {
7979
use super::*;
80-
80+
8181
use serde::{Deserialize, Serialize};
8282
use std::collections::HashMap;
8383

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::{
22
custom_serde::{
3-
deserialize_headers, deserialize_nullish, http_method, serialize_headers,
4-
serialize_multi_value_headers, serialize_query_string_parameters,
3+
deserialize_headers, deserialize_nullish, http_method, serialize_headers, serialize_multi_value_headers,
4+
serialize_query_string_parameters,
55
},
66
encodings::Body,
77
};

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use crate::{
22
custom_serde::{
3-
deserialize_headers, deserialize_nullish, http_method, serialize_headers,
4-
serialize_multi_value_headers,
3+
deserialize_headers, deserialize_nullish, http_method, serialize_headers, serialize_multi_value_headers,
54
},
65
encodings::Body,
76
iam::IamPolicyStatement,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ pub struct CognitoEventUserPoolsPreTokenGenRequest {
433433
#[serde(deserialize_with = "deserialize_nullish")]
434434
#[serde(default)]
435435
pub user_attributes: HashMap<String, String>,
436-
/// Group and role overrides. Note that null or missing values in the request
437-
/// deserialize to [`GroupConfiguration::default`], see notes on [`deserialize_nullish`].
436+
/// Group and role overrides. Note that null or missing values in the request
437+
/// deserialize to [`GroupConfiguration::default`].
438438
#[serde(default, deserialize_with = "deserialize_nullish")]
439439
pub group_configuration: GroupConfiguration,
440440
#[serde(deserialize_with = "deserialize_nullish")]
@@ -498,8 +498,8 @@ pub struct CognitoEventUserPoolsPreTokenGenRequestV2 {
498498
#[serde(deserialize_with = "deserialize_nullish")]
499499
#[serde(default)]
500500
pub user_attributes: HashMap<String, String>,
501-
/// Group and role overrides. Note that null or missing values in the request
502-
/// deserialize to [`GroupConfiguration::default`], see notes on [`deserialize_nullish`].
501+
/// Group and role overrides. Note that null or missing values in the request
502+
/// deserialize to [`GroupConfiguration::default`].
503503
#[serde(default, deserialize_with = "deserialize_nullish")]
504504
pub group_configuration: GroupConfiguration,
505505
#[serde(deserialize_with = "deserialize_nullish")]

lambda-events/src/event/vpc_lattice/v1.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ use serde_json::Value;
88

99
use crate::{
1010
custom_serde::{
11-
deserialize_comma_separated_headers, deserialize_nullish, http_method,
12-
serialize_comma_separated_headers,
11+
deserialize_comma_separated_headers, deserialize_nullish, http_method, serialize_comma_separated_headers,
1312
},
1413
encodings::Body,
1514
};

0 commit comments

Comments
 (0)