瀏覽代碼

Fix accidental conversion of a slice to owned.

This broke #![no_std] builds.
whitequark 7 年之前
父節點
當前提交
e052e5195f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/iface/ethernet.rs

+ 1 - 1
src/iface/ethernet.rs

@@ -96,7 +96,7 @@ impl<'b, 'c, DeviceT> InterfaceBuilder<'b, 'c, DeviceT>
             device:              device,
             device:              device,
             ethernet_addr:       None,
             ethernet_addr:       None,
             neighbor_cache:      None,
             neighbor_cache:      None,
-            ip_addrs:            [].into(),
+            ip_addrs:            ManagedSlice::Borrowed(&mut []),
             ipv4_gateway:        None
             ipv4_gateway:        None
         }
         }
     }
     }