nix
nix copied to clipboard
MSRV 1.56.0 TODO
trafficstars
After raising the MSRV to 1.56.0:
- Simplify
ipv4addr_to_libcandipv4addr_to_libcby changing their bodies to a simplemem::transmute, sinceIpv4AddrandIpv6Addrare simple newtypes around the libc types.
Is std::mem::transmute sound for std::net::Ipv4Addr? It isn't marked repr(transparent).
If we have a static_assertion that guarantees that Ipv4Addr and libc::sockaddr_in are the same size, then it's safe, right? That was my plan.
I believe that should be fine.