Skip to content

Commit 9cc1a2e

Browse files
authored
Merge branch 'development' into dependabot/docker/development/rust-1.76.0
2 parents e68780d + bad5073 commit 9cc1a2e

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.mergify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ pull_request_rules:
1111
- base=development
1212
actions:
1313
queue:
14-
method: merge
14+
method: squash
1515
name: dependabot-updates

Cargo.lock

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,21 @@ struct CommandLineOptions {
4141
flavor: OutputFlavor,
4242
}
4343

44+
fn main() {
45+
let options = CommandLineOptions::parse();
46+
47+
run(options);
48+
}
49+
4450
#[tokio::main(flavor = "current_thread")]
45-
async fn main() {
46-
let CommandLineOptions {
51+
async fn run(
52+
CommandLineOptions {
4753
hostname,
4854
port,
4955
timeout,
5056
flavor,
51-
} = CommandLineOptions::parse();
52-
57+
}: CommandLineOptions,
58+
) {
5359
let hostname = hostname.as_str();
5460

5561
match TcpStream::connect((hostname, port)).await {

0 commit comments

Comments
 (0)