]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys_common/net/tests.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / library / std / src / sys_common / net / tests.rs
index 7d45621e09ae470ec12b7f3785a6e34fa7f06d64..ac75d9ebfc85509f1a9b9894de8ec65a1c4c9021 100644 (file)
@@ -6,7 +6,7 @@ fn no_lookup_host_duplicates() {
     let mut addrs = HashMap::new();
     let lh = match LookupHost::try_from(("localhost", 0)) {
         Ok(lh) => lh,
-        Err(e) => panic!("couldn't resolve `localhost': {}", e),
+        Err(e) => panic!("couldn't resolve `localhost': {e}"),
     };
     for sa in lh {
         *addrs.entry(sa).or_insert(0) += 1;