From 36de3b05e61130f0c279419edeac8bba534a3791 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 1 Nov 2023 00:00:00 +0000 Subject: refactor(claim) remove setter flow we dont need to th verbose of getters and setters for this right now --- src/sub_commands/claim.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/sub_commands/claim.rs') diff --git a/src/sub_commands/claim.rs b/src/sub_commands/claim.rs index cb6e99d..9a38f56 100644 --- a/src/sub_commands/claim.rs +++ b/src/sub_commands/claim.rs @@ -67,12 +67,13 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { println!("publishing repostory reference..."); - let repo_event = RepoRef::default() - .set_name(name) - .set_description(description) - .set_root_commit(root_commit.to_string()) - .set_relays(repo_relays.clone()) - .to_event(&keys)?; + let repo_event = RepoRef { + name, + description, + root_commit: root_commit.to_string(), + relays: repo_relays.clone(), + } + .to_event(&keys)?; send_events( &client, -- cgit v1.2.3