Skip to content

Commit

Permalink
Merge pull request #11 from akiles/clippy
Browse files Browse the repository at this point in the history
Clippy fixes.
  • Loading branch information
alexmoon authored Mar 14, 2024
2 parents 589ec20 + 1904585 commit 72d8cec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/blinky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
let service = match device
.discover_services_with_uuid(NORDIC_LED_AND_BUTTON_SERVICE)
.await?
.get(0)
.first()
{
Some(service) => service.clone(),
None => return Err("service not found".into()),
Expand Down
9 changes: 3 additions & 6 deletions src/btuuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ mod private {
}

/// Bluetooth GATT Service 16-bit UUIDs
#[allow(missing_docs)]
pub mod services {
#![allow(missing_docs)]

use super::bluetooth_uuid_from_u16;
use crate::Uuid;

Expand Down Expand Up @@ -179,9 +178,8 @@ pub mod services {
}

/// Bluetooth GATT Characteristic 16-bit UUIDs
#[allow(missing_docs)]
pub mod characteristics {
#![allow(missing_docs)]

use super::bluetooth_uuid_from_u16;
use crate::Uuid;

Expand Down Expand Up @@ -590,9 +588,8 @@ pub mod characteristics {
}

/// Bluetooth GATT Descriptor 16-bit UUIDs
#[allow(missing_docs)]
pub mod descriptors {
#![allow(missing_docs)]

use super::bluetooth_uuid_from_u16;
use crate::Uuid;

Expand Down

0 comments on commit 72d8cec

Please sign in to comment.