Browse Source

Fix spurious crash in commit bd3912e5.

whitequark 6 năm trước cách đây
mục cha
commit
4ed4635938
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/socket/tcp.rs

+ 2 - 1
src/socket/tcp.rs

@@ -1833,7 +1833,8 @@ mod test {
             }
         }
 
-        log::set_logger(&LOGGER).unwrap();
+        // If it fails, that just means we've already set it to the same value.
+        let _ = log::set_logger(&LOGGER);
         log::set_max_level(log::LevelFilter::Trace);
 
         println!("");