fix trivial-casts

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-03 10:44:46 +00:00
parent 76a4d8aa4c
commit 0e3d192ad2
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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)
})
}