stm32-rs / stm32wlxx-hal

A Hardware abstraction layer for the stm32wl series chips written in rust.
Apache License 2.0
45 stars 18 forks source link

Marking stm32wlxx_hal::subghz::SleepCfg as must_use #375

Closed FuzzyLitchi closed 9 months ago

FuzzyLitchi commented 9 months ago

Right now a mistake like

let cfg = SleepCfg = SleepCfg::new();
cfg.set_startup(Startup::Cold);

// Imagine we later use `cfg`

wouldn't produce a warning, but I think it should.

newAM commented 9 months ago

Thanks for the bug report!