embassy-rs / nrf-softdevice

Apache License 2.0
269 stars 80 forks source link

Remove unused error variants #180

Closed alexmoon closed 1 year ago

alexmoon commented 1 year ago

gatt_server::run could only every return Err(RunError::Disconnected) so just have it return DisconnectedError instead.

The SetValueError::Truncated variant is never constructed, so remove it.

Dirbaio commented 1 year ago

:+1:

Thanks!