Remove use of feature(const_in_array_repeat_expressions)
This commit is contained in:
parent
803162f11b
commit
a7d1d02be0
@ -1,6 +1,5 @@
|
|||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
#![feature(const_fn)]
|
#![feature(const_fn)]
|
||||||
#![feature(const_in_array_repeat_expressions)]
|
|
||||||
#![feature(const_generics)]
|
#![feature(const_generics)]
|
||||||
#![feature(const_evaluatable_checked)]
|
#![feature(const_evaluatable_checked)]
|
||||||
#![allow(incomplete_features)]
|
#![allow(incomplete_features)]
|
||||||
|
@ -146,10 +146,11 @@ impl Stack {
|
|||||||
/// Initialize embassy_net.
|
/// Initialize embassy_net.
|
||||||
/// This function must be called from thread mode.
|
/// This function must be called from thread mode.
|
||||||
pub fn init(device: &'static mut dyn Device, configurator: &'static mut dyn Configurator) {
|
pub fn init(device: &'static mut dyn Device, configurator: &'static mut dyn Configurator) {
|
||||||
|
const NONE_SOCKET: Option<SocketSetItem<'static>> = None;
|
||||||
let res = STACK_RESOURCES.put(StackResources {
|
let res = STACK_RESOURCES.put(StackResources {
|
||||||
addresses: [IpCidr::new(Ipv4Address::UNSPECIFIED.into(), 32)],
|
addresses: [IpCidr::new(Ipv4Address::UNSPECIFIED.into(), 32)],
|
||||||
neighbor_cache: [None; NEIGHBOR_CACHE_LEN],
|
neighbor_cache: [None; NEIGHBOR_CACHE_LEN],
|
||||||
sockets: [None; SOCKETS_LEN],
|
sockets: [NONE_SOCKET; SOCKETS_LEN],
|
||||||
routes: [None; 1],
|
routes: [None; 1],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user