From 607d86219c855f4cba1f80d77443a63dd6118194 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 27 Dec 2022 15:47:42 +0100 Subject: [PATCH] Fix clippy: Remove unneeded clone() calls Signed-off-by: Matthias Beyer --- src/requests/statuses.rs | 2 +- src/requests/update_credentials.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/requests/statuses.rs b/src/requests/statuses.rs index 29177aa..4d260dc 100644 --- a/src/requests/statuses.rs +++ b/src/requests/statuses.rs @@ -58,7 +58,7 @@ impl<'a> Into>> for &'a mut StatusesRequest<'a> { pinned: self.pinned, max_id: self.max_id.clone(), since_id: self.since_id.clone(), - limit: self.limit.clone(), + limit: self.limit, min_id: self.min_id.clone(), }) } diff --git a/src/requests/update_credentials.rs b/src/requests/update_credentials.rs index b4e0d89..44ae566 100644 --- a/src/requests/update_credentials.rs +++ b/src/requests/update_credentials.rs @@ -176,8 +176,8 @@ impl UpdateCredsRequest { avatar: self.avatar.clone(), header: self.avatar.clone(), source: Some(UpdateSource { - privacy: self.privacy.clone(), - sensitive: self.sensitive.clone(), + privacy: self.privacy, + sensitive: self.sensitive, }), fields_attributes: self.field_attributes.clone(), })