Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
taks committed Jul 26, 2024
1 parent bcf2e1e commit 6b761fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ble_security.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl BLESecurity {

/// Set the passkey the server will ask for when pairing.
/// * The passkey will always be exactly 6 digits. Setting the passkey to 1234
/// will require the user to provide '001234'
/// will require the user to provide '001234'
/// * a dynamic passkey can also be set by [`crate::BLEServer::on_passkey_request`]
pub fn set_passkey(&mut self, passkey: u32) -> &mut Self {
debug_assert!(
Expand Down
2 changes: 1 addition & 1 deletion src/server/ble_characteristic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ impl BLECharacteristic {
/// Do not call `lock` on this characteristic inside the callback, use the first input instead.
/// In the future, this characteristic could be locked while the callback executes.
/// * `callback` - Function to call when a subscription event is recieved, including subscribe and unsubscribe events
/// see [`crate::NimbleSub`] for event type
/// see [`crate::NimbleSub`] for event type
pub fn on_subscribe(
&mut self,
callback: impl FnMut(&Self, &BLEConnDesc, NimbleSub) + Send + Sync + 'static,
Expand Down
6 changes: 3 additions & 3 deletions src/server/ble_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl BLEServer {

/// Set a callback fn for generating a passkey if required by the connection
/// * The passkey will always be exactly 6 digits. Setting the passkey to 1234
/// will require the user to provide '001234'
/// will require the user to provide '001234'
/// * a static passkey can also be set by [`crate::BLESecurity::set_passkey`]
pub fn on_passkey_request(
&mut self,
Expand Down Expand Up @@ -97,8 +97,8 @@ impl BLEServer {
/// The callback function is called when the pairing procedure is complete.
/// * callback first parameter: A reference to a `BLEConnDesc` instance.
/// * callback second parameter: Indicates the result of the encryption state change attempt;
/// o 0: the encrypted state was successfully updated;
/// o BLE host error code: the encryption state change attempt failed for the specified reason.
/// o 0: the encrypted state was successfully updated;
/// o BLE host error code: the encryption state change attempt failed for the specified reason.
pub fn on_authentication_complete(
&mut self,
callback: impl Fn(&BLEConnDesc, Result<(), BLEError>) + Send + Sync + 'static,
Expand Down

0 comments on commit 6b761fc

Please sign in to comment.