From 6463401a6b8a5d0b93cf2d28e035d836090b3712 Mon Sep 17 00:00:00 2001 From: Aleh Zasypkin Date: Sat, 25 Nov 2023 23:20:07 +0100 Subject: [PATCH] chore(linter): fix clippy warnings --- src/utils/webhooks/responders/responder.rs | 4 ++-- src/utils/webhooks/responders/responder_request.rs | 8 ++++---- src/utils/webhooks/responders/responder_settings.rs | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/utils/webhooks/responders/responder.rs b/src/utils/webhooks/responders/responder.rs index 8908458..97b20f9 100644 --- a/src/utils/webhooks/responders/responder.rs +++ b/src/utils/webhooks/responders/responder.rs @@ -73,7 +73,7 @@ mod tests { fn deserialization() -> anyhow::Result<()> { assert_eq!( serde_json::from_str::( - r###" + r#" { "id": "00000000-0000-0000-0000-000000000001", "name": "some-name", @@ -93,7 +93,7 @@ mod tests { }, "createdAt": 946720800 } - "### + "# )?, Responder { id: uuid!("00000000-0000-0000-0000-000000000001"), diff --git a/src/utils/webhooks/responders/responder_request.rs b/src/utils/webhooks/responders/responder_request.rs index 1cc0f55..d874fe5 100644 --- a/src/utils/webhooks/responders/responder_request.rs +++ b/src/utils/webhooks/responders/responder_request.rs @@ -94,7 +94,7 @@ mod tests { fn deserialization() -> anyhow::Result<()> { assert_eq!( serde_json::from_str::( - r###" + r#" { "id": "00000000-0000-0000-0000-000000000001", "responderId": "00000000-0000-0000-0000-000000000002", @@ -117,7 +117,7 @@ mod tests { ], "createdAt": 946720800 } - "### + "# )?, ResponderRequest { id: uuid!("00000000-0000-0000-0000-000000000001"), @@ -135,14 +135,14 @@ mod tests { assert_eq!( serde_json::from_str::( - 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"), diff --git a/src/utils/webhooks/responders/responder_settings.rs b/src/utils/webhooks/responders/responder_settings.rs index 4148f32..ab3b28b 100644 --- a/src/utils/webhooks/responders/responder_settings.rs +++ b/src/utils/webhooks/responders/responder_settings.rs @@ -58,7 +58,7 @@ mod tests { fn deserialization() -> anyhow::Result<()> { assert_eq!( serde_json::from_str::( - r###" + r#" { "requestsToTrack": 10, "statusCode": 123, @@ -71,7 +71,7 @@ mod tests { ], "delay": 1000 } - "### + "# )?, ResponderSettings { requests_to_track: 10, @@ -84,12 +84,12 @@ mod tests { assert_eq!( serde_json::from_str::( - r###" + r#" { "statusCode": 123, "delay": 1000 } - "### + "# )?, ResponderSettings { requests_to_track: 0,