Skip to content

Commit

Permalink
cargo format
Browse files Browse the repository at this point in the history
  • Loading branch information
jherzstein committed Dec 7, 2024
1 parent d60f12c commit b4c04e1
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,12 @@ async fn main() -> eyre::Result<()> {
match app.command {

Check warning on line 292 in cli/src/main.rs

View workflow job for this annotation

GitHub Actions / Cargo Format

Diff in /home/runner/work/magic-wormhole.rs/magic-wormhole.rs/cli/src/main.rs
WormholeCommand::Send {
common,
common_leader: CommonLeaderArgs { code, code_length , qr },
common_leader:
CommonLeaderArgs {
code,
code_length,
qr,
},
common_send: CommonSenderArgs { file_name, files },
..
} => {
Expand Down Expand Up @@ -332,7 +337,12 @@ async fn main() -> eyre::Result<()> {
tries,

Check warning on line 337 in cli/src/main.rs

View workflow job for this annotation

GitHub Actions / Cargo Format

Diff in /home/runner/work/magic-wormhole.rs/magic-wormhole.rs/cli/src/main.rs
timeout,
common,
common_leader: CommonLeaderArgs { code, code_length, qr },
common_leader:
CommonLeaderArgs {
code,
code_length,
qr,
},
common_send: CommonSenderArgs { file_name, files },
..
} => {
Expand Down Expand Up @@ -407,7 +417,12 @@ async fn main() -> eyre::Result<()> {
WormholeCommand::Forward(ForwardCommand::Serve {

Check warning on line 417 in cli/src/main.rs

View workflow job for this annotation

GitHub Actions / Cargo Format

Diff in /home/runner/work/magic-wormhole.rs/magic-wormhole.rs/cli/src/main.rs
targets,
common,
common_leader: CommonLeaderArgs { code, code_length, qr },
common_leader:
CommonLeaderArgs {
code,
code_length,
qr,
},
..
}) => {
// TODO make fancy
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -555,7 +572,8 @@ fn parse_transit_args(args: &CommonArgs) -> transit::Abilities {
}

Check warning on line 572 in cli/src/main.rs

View workflow job for this annotation

GitHub Actions / Cargo Format

Diff in /home/runner/work/magic-wormhole.rs/magic-wormhole.rs/cli/src/main.rs
}

type PrintCodeFn = dyn Fn(&mut Term, &magic_wormhole::Code, &Option<url::Url>, bool) -> eyre::Result<()>;
type PrintCodeFn =
dyn Fn(&mut Term, &magic_wormhole::Code, &Option<url::Url>, bool) -> eyre::Result<()>;

/**
* Parse the necessary command line arguments to establish an initial server connection.
Expand Down

0 comments on commit b4c04e1

Please sign in to comment.