fix trivial-casts
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
76a4d8aa4c
commit
0e3d192ad2
2 changed files with 4 additions and 2 deletions
|
@ -662,7 +662,7 @@ rust-2021-incompatible-or-patterns = "warn"
|
|||
rust-2021-prefixes-incompatible-syntax = "warn"
|
||||
rust-2021-prelude-collisions = "warn"
|
||||
single-use-lifetimes = "warn"
|
||||
#trivial-casts = "warn" # TODO
|
||||
trivial-casts = "warn"
|
||||
trivial-numeric-casts = "warn"
|
||||
unit-bindings = "warn"
|
||||
#unnameable-types = "warn" # TODO
|
||||
|
|
|
@ -129,6 +129,8 @@ fn resolve_to_reqwest(resolver: Arc<TokioAsyncResolver>, name: Name) -> Resolvin
|
|||
.into_iter()
|
||||
.map(|ip| SocketAddr::new(ip, 0));
|
||||
|
||||
Ok(Box::new(results) as Addrs)
|
||||
let results: Addrs = Box::new(results);
|
||||
|
||||
Ok(results)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue