Skip to content

Commit

Permalink
Merge pull request #847 from stmcginnis/default_menace
Browse files Browse the repository at this point in the history
Remove extraneous `default()` calls
  • Loading branch information
stmcginnis authored Sep 19, 2023
2 parents 2491a2a + 0b953eb commit f98c337
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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::<DefaultInfoClient>::default(),
agent_client: PhantomData::<DefaultAgentClient>::default(),
info_client: PhantomData::<DefaultInfoClient>,
agent_client: PhantomData::<DefaultAgentClient>,
};

// We build the agent component and use it to either create or destroy resources.
Expand Down
4 changes: 2 additions & 2 deletions agent/resource-agent/examples/example_resource_agent/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<DefaultInfoClient>::default(),
agent_client: PhantomData::<DefaultAgentClient>::default(),
info_client: PhantomData::<DefaultInfoClient>,
agent_client: PhantomData::<DefaultAgentClient>,
};

// We build the agent component and use it to either create or destroy resources.
Expand Down

0 comments on commit f98c337

Please sign in to comment.