summaryrefslogtreecommitdiff
path: root/nrf-softdevice/src/ble/gatt_client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nrf-softdevice/src/ble/gatt_client.rs')
-rw-r--r--nrf-softdevice/src/ble/gatt_client.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/nrf-softdevice/src/ble/gatt_client.rs b/nrf-softdevice/src/ble/gatt_client.rs
index 5affd5f..fca71fb 100644
--- a/nrf-softdevice/src/ble/gatt_client.rs
+++ b/nrf-softdevice/src/ble/gatt_client.rs
@@ -157,7 +157,7 @@ pub(crate) async fn discover_service(
}
}
}
- _ => unreachable!(),
+ e => panic!("unexpected event {}", e),
}
})
.await
@@ -201,7 +201,7 @@ async fn discover_characteristics(
});
Ok(v)
}
- _ => unreachable!(),
+ e => panic!("unexpected event {}", e),
}
})
.await
@@ -245,7 +245,7 @@ async fn discover_descriptors(
});
Ok(v)
}
- _ => unreachable!(),
+ e => panic!("unexpected event {}", e),
}
})
.await
@@ -648,7 +648,7 @@ pub(crate) async fn att_mtu_exchange(conn: &Connection, mtu: u16) -> Result<(),
Ok(())
}
- _ => unreachable!(),
+ e => panic!("unexpected event {}", e),
}
})
.await