Fix deprecation warnings in `aws-smithy-http-server` examples (#1462)

This commit is contained in:
John DiSanti 2022-06-13 12:55:33 -07:00 committed by GitHub
parent 6e3e010e91
commit 3c1b71f3b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ authors = ["Smithy-rs Server Team <smithy-rs-server@amazon.com>"]
description = "A smithy Rust service to retrieve information about Pokémon."
[dependencies]
clap = { version = "3", features = ["derive"] }
clap = { version = "3.2.1", features = ["derive"] }
hyper = {version = "0.14", features = ["server"] }
tokio = "1"
tower = "0.4"

View File

@ -17,10 +17,10 @@ use tower_http::trace::TraceLayer;
#[clap(author, version, about, long_about = None)]
struct Args {
/// Hyper server bind address.
#[clap(short, long, default_value = "127.0.0.1")]
#[clap(short, long, action, default_value = "127.0.0.1")]
address: String,
/// Hyper server bind port.
#[clap(short, long, default_value = "13734")]
#[clap(short, long, action, default_value = "13734")]
port: u16,
}