mirror of https://github.com/smithy-lang/smithy-rs
Fix deprecation warnings in `aws-smithy-http-server` examples (#1462)
This commit is contained in:
parent
6e3e010e91
commit
3c1b71f3b9
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue