summaryrefslogtreecommitdiff
path: root/nrf-softdevice
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2021-07-21 13:09:35 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2021-07-21 13:09:35 +0200
commit1e85ce1854212376d1e10090bd9675aa8070e416 (patch)
tree233a3786d5de590fd79637c153964ceac9fac1ba /nrf-softdevice
parentae2d4cb09073a2d9849f9f96ccc2d35133366ea0 (diff)
downloadnrf-softdevice-1e85ce1854212376d1e10090bd9675aa8070e416.zip
use unwrap macro
Diffstat (limited to 'nrf-softdevice')
-rw-r--r--nrf-softdevice/src/ble/gatt_traits.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nrf-softdevice/src/ble/gatt_traits.rs b/nrf-softdevice/src/ble/gatt_traits.rs
index 799d826..9fc7475 100644
--- a/nrf-softdevice/src/ble/gatt_traits.rs
+++ b/nrf-softdevice/src/ble/gatt_traits.rs
@@ -76,7 +76,7 @@ impl<const N: usize> GattValue for Vec<u8, N> {
const MAX_SIZE: usize = N;
fn from_gatt(data: &[u8]) -> Self {
- Self::from_slice(data).unwrap()
+ unwrap!(Self::from_slice(data))
}
fn to_gatt(&self) -> &[u8] {