Merge pull request #1591 from bugadani/patch-1
Make StackResources::new() const
This commit is contained in:
commit
2eb7a67c70
@ -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