diff options
| -rw-r--r-- | embassy-net/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index 3e83da7aa..17a7a22a2 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs | |||
| @@ -57,7 +57,7 @@ pub struct StackResources<const SOCK: usize> { | |||
| 57 | 57 | ||
| 58 | impl<const SOCK: usize> StackResources<SOCK> { | 58 | impl<const SOCK: usize> StackResources<SOCK> { |
| 59 | /// Create a new set of stack resources. | 59 | /// Create a new set of stack resources. |
| 60 | pub fn new() -> Self { | 60 | pub const fn new() -> Self { |
| 61 | #[cfg(feature = "dns")] | 61 | #[cfg(feature = "dns")] |
| 62 | const INIT: Option<dns::DnsQuery> = None; | 62 | const INIT: Option<dns::DnsQuery> = None; |
| 63 | Self { | 63 | Self { |
