diff options
| author | iliana etaoin <[email protected]> | 2025-04-13 00:26:43 -0700 |
|---|---|---|
| committer | iliana etaoin <[email protected]> | 2025-04-13 00:26:43 -0700 |
| commit | db83d7275e63ba2a277f50138a6bd38baedf6937 (patch) | |
| tree | 7354e7e84047945e886390937eba094e43d963f4 /cyw43/src/lib.rs | |
| parent | 659c616f9f13aa6f157eaef5279f09805449b5be (diff) | |
cyw43: make State::new a const fn
Diffstat (limited to 'cyw43/src/lib.rs')
| -rw-r--r-- | cyw43/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cyw43/src/lib.rs b/cyw43/src/lib.rs index aab13d8b8..16b436e66 100644 --- a/cyw43/src/lib.rs +++ b/cyw43/src/lib.rs | |||
| @@ -124,7 +124,7 @@ struct NetState { | |||
| 124 | 124 | ||
| 125 | impl State { | 125 | impl State { |
| 126 | /// Create new driver state holder. | 126 | /// Create new driver state holder. |
| 127 | pub fn new() -> Self { | 127 | pub const fn new() -> Self { |
| 128 | Self { | 128 | Self { |
| 129 | ioctl_state: IoctlState::new(), | 129 | ioctl_state: IoctlState::new(), |
| 130 | net: NetState { | 130 | net: NetState { |
