Skip to content

Commit

Permalink
chore(linter): fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Nov 25, 2023
1 parent 397fa91 commit 6463401
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/utils/webhooks/responders/responder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ mod tests {
fn deserialization() -> anyhow::Result<()> {
assert_eq!(
serde_json::from_str::<Responder>(
r###"
r#"
{
"id": "00000000-0000-0000-0000-000000000001",
"name": "some-name",
Expand All @@ -93,7 +93,7 @@ mod tests {
},
"createdAt": 946720800
}
"###
"#
)?,
Responder {
id: uuid!("00000000-0000-0000-0000-000000000001"),
Expand Down
8 changes: 4 additions & 4 deletions src/utils/webhooks/responders/responder_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ mod tests {
fn deserialization() -> anyhow::Result<()> {
assert_eq!(
serde_json::from_str::<ResponderRequest>(
r###"
r#"
{
"id": "00000000-0000-0000-0000-000000000001",
"responderId": "00000000-0000-0000-0000-000000000002",
Expand All @@ -117,7 +117,7 @@ mod tests {
],
"createdAt": 946720800
}
"###
"#
)?,
ResponderRequest {
id: uuid!("00000000-0000-0000-0000-000000000001"),
Expand All @@ -135,14 +135,14 @@ mod tests {

assert_eq!(
serde_json::from_str::<ResponderRequest>(
r###"
r#"
{
"id": "00000000-0000-0000-0000-000000000001",
"responderId": "00000000-0000-0000-0000-000000000002",
"method": "POST",
"createdAt": 946720800
}
"###
"#
)?,
ResponderRequest {
id: uuid!("00000000-0000-0000-0000-000000000001"),
Expand Down
8 changes: 4 additions & 4 deletions src/utils/webhooks/responders/responder_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ mod tests {
fn deserialization() -> anyhow::Result<()> {
assert_eq!(
serde_json::from_str::<ResponderSettings>(
r###"
r#"
{
"requestsToTrack": 10,
"statusCode": 123,
Expand All @@ -71,7 +71,7 @@ mod tests {
],
"delay": 1000
}
"###
"#
)?,
ResponderSettings {
requests_to_track: 10,
Expand All @@ -84,12 +84,12 @@ mod tests {

assert_eq!(
serde_json::from_str::<ResponderSettings>(
r###"
r#"
{
"statusCode": 123,
"delay": 1000
}
"###
"#
)?,
ResponderSettings {
requests_to_track: 0,
Expand Down

0 comments on commit 6463401

Please sign in to comment.