diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-12-15 14:58:02 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-12-20 07:05:04 -0800 |
commit | d8c538525807253aea6c64fc4bdcdb8a6e24f78d (patch) | |
tree | e7f489787ca2b3b08208bdbdd9720dde7c3df63a /test/sys/test_socket.rs | |
parent | 4bad9bf9b9bb08d29511f060a3adae7453573a72 (diff) | |
download | nix-d8c538525807253aea6c64fc4bdcdb8a6e24f78d.zip |
Make numeric literals easier to read
Diffstat (limited to 'test/sys/test_socket.rs')
-rw-r--r-- | test/sys/test_socket.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs index d29b2ecb..a997fbca 100644 --- a/test/sys/test_socket.rs +++ b/test/sys/test_socket.rs @@ -13,7 +13,7 @@ pub fn test_inetv4_addr_to_sock_addr() { match addr { InetAddr::V4(addr) => { - let ip: u32 = 0x7f000001; + let ip: u32 = 0x7f00_0001; let port: u16 = 3000; assert_eq!(addr.sin_addr.s_addr, ip.to_be()); |