mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Maintenance: dep updates and clippy fixs (#243)
* chore(deps): update crc32fast to v1.5 * chore(deps): update ureq to v2.12 * chore(deps): update phf to v0.13 * chore(deps): update clap to v4.5 * chore(deps): update lazy_static to v1.5 * chore(deps): update thiserror to v2.0.16 * chore(deps): update clap to v4.5 * chore(deps): update bson to v2.15 * chore(deps): update base64 to v0.22 * chore(deps): update quick-xml to v0.38 * chore(deps): update webbrowser to v1.0 * chore(clippy): fix a load of "variables can be used directly" * chore(ci): update MSRV toolchain to 1.82.0 * chore(pre-commit): update MSRV to 1.82.0 * chore(README): update Minimum Supported Rust Version to 1.82.0 * chore(VERSIONS): update MSRV to 1.82.0 * chore(cli): bump version to 0.4.0 and update MSRV to 1.82.0 * chore(release): bump version to 0.8.0 and update MSRV to 1.82.0
This commit is contained in:
parent
d6fe78f0e6
commit
080f327ab6
12 changed files with 54 additions and 33 deletions
|
|
@ -211,7 +211,7 @@ impl HttpClient {
|
|||
Host::Ipv4(ip) => SocketAddr::V4(SocketAddrV4::new(ip, port)),
|
||||
Host::Ipv6(ip) => SocketAddr::V6(SocketAddrV6::new(ip, port, 0, 0)),
|
||||
Host::Domain(domain) => {
|
||||
format!("{}:{}", domain, port)
|
||||
format!("{domain}:{port}")
|
||||
.to_socket_addrs()
|
||||
.map_err(|e| HostLookup.context(e))?
|
||||
.next()
|
||||
|
|
|
|||
|
|
@ -76,8 +76,7 @@ impl Unreal2Protocol {
|
|||
|
||||
if packet_type != expected_packet_type {
|
||||
Err(PacketBad.context(format!(
|
||||
"Packet response ({:?}) didn't match request ({:?}) packet type",
|
||||
packet_type, expected_packet_type
|
||||
"Packet response ({packet_type:?}) didn't match request ({expected_packet_type:?}) packet type",
|
||||
)))
|
||||
} else {
|
||||
Ok(())
|
||||
|
|
@ -115,7 +114,7 @@ impl Unreal2Protocol {
|
|||
|
||||
let r = Self::consume_response_headers(&mut buffer, PacketKind::MutatorsAndRules);
|
||||
if r.is_err() {
|
||||
println!("{:?}", r);
|
||||
println!("{r:?}");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue