Make StackResources::new() const
This commit is contained in:
parent
9b5d7ec061
commit
59f829c6cc
@ -57,7 +57,7 @@ pub struct StackResources<const SOCK: usize> {
|
||||
|
||||
impl<const SOCK: usize> StackResources<SOCK> {
|
||||
/// Create a new set of stack resources.
|
||||
pub fn new() -> Self {
|
||||
pub const fn new() -> Self {
|
||||
#[cfg(feature = "dns")]
|
||||
const INIT: Option<dns::DnsQuery> = None;
|
||||
Self {
|
||||
|
Loading…
Reference in New Issue
Block a user