From cb4c0c24a99e560525cdd9859ebc8c6456fe3130 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 27 Dec 2022 18:50:58 +0100 Subject: [PATCH] Fix clippy: Derive Eq for StatusesRequest Signed-off-by: Matthias Beyer --- src/requests/statuses.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requests/statuses.rs b/src/requests/statuses.rs index 0e5d81f..61d6a8b 100644 --- a/src/requests/statuses.rs +++ b/src/requests/statuses.rs @@ -29,7 +29,7 @@ mod bool_qs_serialize { /// request.only_media().pinned().since_id("foo"); /// assert_eq!(&request.to_querystring().expect("Couldn't serialize qs")[..], "?only_media=1&pinned=1&since_id=foo"); /// ``` -#[derive(Clone, Debug, Default, PartialEq, Serialize)] +#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize)] pub struct StatusesRequest<'a> { #[serde(skip_serializing_if = "bool_qs_serialize::is_false")] #[serde(serialize_with = "bool_qs_serialize::serialize")]