Преглед на файлове

Fix rust-1.28 feature name (should be rust_1.28).

whitequark преди 6 години
родител
ревизия
246b8a2cef
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      Cargo.toml
  2. 2 2
      src/phy/loopback.rs

+ 1 - 1
Cargo.toml

@@ -49,7 +49,7 @@ default = [
 ]
 
 # experimental; do not use; no guarantees provided that this feature will be kept
-"rust-1.28" = []
+"rust-1_28" = []
 
 [[example]]
 name = "packet2pcap"

+ 2 - 2
src/phy/loopback.rs

@@ -4,9 +4,9 @@ use std::vec::Vec;
 use std::collections::VecDeque;
 #[cfg(feature = "alloc")]
 use alloc::vec::Vec;
-#[cfg(all(feature = "alloc", not(feature = "rust-1.28")))]
+#[cfg(all(feature = "alloc", not(feature = "rust-1_28")))]
 use alloc::collections::VecDeque;
-#[cfg(all(feature = "alloc", feature = "rust-1.28"))]
+#[cfg(all(feature = "alloc", feature = "rust-1_28"))]
 use alloc::VecDeque;
 
 use Result;