From 87839545551a2694601bda55ba93ce44f4657b60 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Jul 2026 06:57:21 +0000 Subject: [PATCH 1/2] Initial plan From 22035f673d540075805ec5dc4d4a8e653fe23958 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Jul 2026 06:59:05 +0000 Subject: [PATCH 2/2] Fix clippy useless_borrows_in_formatting lint errors --- examples/azure_auth/entity/comment.rs | 2 +- examples/azure_auth/entity/post.rs | 2 +- examples/basic/entity/comment.rs | 2 +- examples/basic/entity/user.rs | 2 +- tests/test_setup/comment.rs | 2 +- tests/test_setup/post.rs | 2 +- tests/test_setup/sample_with_tenant_id.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/azure_auth/entity/comment.rs b/examples/azure_auth/entity/comment.rs index 4f63af3..1f32505 100644 --- a/examples/azure_auth/entity/comment.rs +++ b/examples/azure_auth/entity/comment.rs @@ -70,7 +70,7 @@ impl ActixAdminModelFilterTrait for Entity {} impl Display for Model { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { match &*self { - _ => write!(formatter, "{} {}", &self.insert_date, &self.user), + _ => write!(formatter, "{} {}", self.insert_date, self.user), } } } diff --git a/examples/azure_auth/entity/post.rs b/examples/azure_auth/entity/post.rs index e82ade5..01ad28b 100644 --- a/examples/azure_auth/entity/post.rs +++ b/examples/azure_auth/entity/post.rs @@ -38,7 +38,7 @@ pub struct Model { impl Display for Model { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { match &*self { - _ => write!(formatter, "{} {}", &self.title, &self.insert_date), + _ => write!(formatter, "{} {}", self.title, self.insert_date), } } } diff --git a/examples/basic/entity/comment.rs b/examples/basic/entity/comment.rs index 3d13eeb..b4f3ac7 100644 --- a/examples/basic/entity/comment.rs +++ b/examples/basic/entity/comment.rs @@ -77,7 +77,7 @@ impl ActixAdminModelValidationTrait for Entity { impl Display for Model { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { match &*self { - _ => write!(formatter, "{} {}", &self.insert_date, &self.user), + _ => write!(formatter, "{} {}", self.insert_date, self.user), } } } diff --git a/examples/basic/entity/user.rs b/examples/basic/entity/user.rs index ee655b9..de571ef 100644 --- a/examples/basic/entity/user.rs +++ b/examples/basic/entity/user.rs @@ -36,7 +36,7 @@ impl ActixAdminModelFilterTrait for Entity {} impl Display for Model { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { match &*self { - _ => write!(formatter, "{}", &self.name), + _ => write!(formatter, "{}", self.name), } } } diff --git a/tests/test_setup/comment.rs b/tests/test_setup/comment.rs index 74ce086..db910bb 100644 --- a/tests/test_setup/comment.rs +++ b/tests/test_setup/comment.rs @@ -105,7 +105,7 @@ impl ActixAdminModelFilterTrait for Entity { impl Display for Model { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { match &*self { - _ => write!(formatter, "{} {}", &self.insert_date, &self.user), + _ => write!(formatter, "{} {}", self.insert_date, self.user), } } } diff --git a/tests/test_setup/post.rs b/tests/test_setup/post.rs index 7a5b278..fa3c82b 100644 --- a/tests/test_setup/post.rs +++ b/tests/test_setup/post.rs @@ -53,7 +53,7 @@ pub struct Model { impl Display for Model { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { match &*self { - _ => write!(formatter, "{}", &self.title), + _ => write!(formatter, "{}", self.title), } } } diff --git a/tests/test_setup/sample_with_tenant_id.rs b/tests/test_setup/sample_with_tenant_id.rs index 89a225b..7c083c8 100644 --- a/tests/test_setup/sample_with_tenant_id.rs +++ b/tests/test_setup/sample_with_tenant_id.rs @@ -34,7 +34,7 @@ pub struct Model { impl Display for Model { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { match &*self { - _ => write!(formatter, "{}", &self.title), + _ => write!(formatter, "{}", self.title), } } }