From b4c04e1a49fe73649a1113f2ce60daf86f2d8c05 Mon Sep 17 00:00:00 2001 From: Jordan Herzstein Date: Sat, 7 Dec 2024 10:54:54 -0500 Subject: [PATCH] cargo format --- cli/src/main.rs | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index af840ce3..47f398a3 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -292,7 +292,12 @@ async fn main() -> eyre::Result<()> { match app.command { WormholeCommand::Send { common, - common_leader: CommonLeaderArgs { code, code_length , qr }, + common_leader: + CommonLeaderArgs { + code, + code_length, + qr, + }, common_send: CommonSenderArgs { file_name, files }, .. } => { @@ -332,7 +337,12 @@ async fn main() -> eyre::Result<()> { tries, timeout, common, - common_leader: CommonLeaderArgs { code, code_length, qr }, + common_leader: + CommonLeaderArgs { + code, + code_length, + qr, + }, common_send: CommonSenderArgs { file_name, files }, .. } => { @@ -407,7 +417,12 @@ async fn main() -> eyre::Result<()> { WormholeCommand::Forward(ForwardCommand::Serve { targets, common, - common_leader: CommonLeaderArgs { code, code_length, qr }, + common_leader: + CommonLeaderArgs { + code, + code_length, + qr, + }, .. }) => { // TODO make fancy @@ -489,7 +504,9 @@ async fn main() -> eyre::Result<()> { let mut app_config = forwarding::APP_CONFIG; app_config.app_version.transit_abilities = parse_transit_args(&common); let (wormhole, _code, relay_hints) = - parse_and_connect(&mut term, common, code, None, false, false, app_config, None).await?; + parse_and_connect(&mut term, common, code, None, false, false, app_config, None, + ) + .await?; let offer = forwarding::connect( wormhole, @@ -555,7 +572,8 @@ fn parse_transit_args(args: &CommonArgs) -> transit::Abilities { } } -type PrintCodeFn = dyn Fn(&mut Term, &magic_wormhole::Code, &Option, bool) -> eyre::Result<()>; +type PrintCodeFn = + dyn Fn(&mut Term, &magic_wormhole::Code, &Option, bool) -> eyre::Result<()>; /** * Parse the necessary command line arguments to establish an initial server connection.