From 0b953eb441f8f061577c7c5909ca58fca34b5b52 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Mon, 24 Jul 2023 19:40:17 +0000 Subject: [PATCH] Remove extraneous `default()` calls Starting with Rust 1.71.0, clippy had added another check that looks for `default` being called on unit structs. There are a few instances in the testsys codebase where this happens, so attempting to build with the latest rust toolchain will fail. This removes the calls to `default()` since they are not necessary. Signed-off-by: Sean McGinnis --- .../resource-agent/examples/duplicator_resource_agent/main.rs | 4 ++-- agent/resource-agent/examples/example_resource_agent/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/resource-agent/examples/duplicator_resource_agent/main.rs b/agent/resource-agent/examples/duplicator_resource_agent/main.rs index 16398546..aaf6aca0 100644 --- a/agent/resource-agent/examples/duplicator_resource_agent/main.rs +++ b/agent/resource-agent/examples/duplicator_resource_agent/main.rs @@ -38,8 +38,8 @@ async fn main() { async fn run(data: BootstrapData) -> AgentResult<()> { // We specify all of our custom types with this PhantomData struct. let types = Types { - info_client: PhantomData::::default(), - agent_client: PhantomData::::default(), + info_client: PhantomData::, + agent_client: PhantomData::, }; // We build the agent component and use it to either create or destroy resources. diff --git a/agent/resource-agent/examples/example_resource_agent/main.rs b/agent/resource-agent/examples/example_resource_agent/main.rs index fec52a5a..06aa23dc 100644 --- a/agent/resource-agent/examples/example_resource_agent/main.rs +++ b/agent/resource-agent/examples/example_resource_agent/main.rs @@ -38,8 +38,8 @@ async fn main() { async fn run(data: BootstrapData) -> AgentResult<()> { // We specify all of our custom types with this PhantomData struct. let types = Types { - info_client: PhantomData::::default(), - agent_client: PhantomData::::default(), + info_client: PhantomData::, + agent_client: PhantomData::, }; // We build the agent component and use it to either create or destroy resources.