Kaynağa Gözat

Fix spurious crash in commit bd3912e5.

whitequark 5 yıl önce
ebeveyn
işleme
4ed4635938
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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!("");