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), } } }