Simplify default Result generics.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -13,7 +13,7 @@ pub(super) async fn serve(
|
||||
app: Router,
|
||||
handle: ServerHandle,
|
||||
addrs: Vec<SocketAddr>,
|
||||
) -> Result<()> {
|
||||
) -> Result {
|
||||
let app = app.into_make_service_with_connect_info::<SocketAddr>();
|
||||
let mut join_set = JoinSet::new();
|
||||
for addr in &addrs {
|
||||
|
||||
@@ -38,7 +38,7 @@ pub(super) async fn serve(
|
||||
server: &Arc<Server>,
|
||||
app: Router,
|
||||
mut shutdown: broadcast::Receiver<()>,
|
||||
) -> Result<()> {
|
||||
) -> Result {
|
||||
let mut tasks = JoinSet::<()>::new();
|
||||
let executor = TokioExecutor::new();
|
||||
let app = app.into_make_service_with_connect_info::<net::SocketAddr>();
|
||||
|
||||
Reference in New Issue
Block a user