From 54955ca5e890df91d9b107f9d7979b2bb65a8632 Mon Sep 17 00:00:00 2001 From: Sebastian Urban Date: Thu, 21 Oct 2021 19:27:09 +0200 Subject: [PATCH] Update Bluetooth numbers database --- bluer/bluetooth-numbers-database | 2 +- bluer/build.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bluer/bluetooth-numbers-database b/bluer/bluetooth-numbers-database index 48365d7..834a31a 160000 --- a/bluer/bluetooth-numbers-database +++ b/bluer/bluetooth-numbers-database @@ -1 +1 @@ -Subproject commit 48365d7c1f4248f7272dacfa3d9e53b2e27f7086 +Subproject commit 834a31a781e01db327c0bc466faeb071f6e10b14 diff --git a/bluer/build.rs b/bluer/build.rs index 0fbee41..89be8c1 100644 --- a/bluer/build.rs +++ b/bluer/build.rs @@ -103,6 +103,7 @@ fn convert_uuids(src: &str, dest: &str, name: &str, doc_name: &str, prefix: &str writeln!(out, "impl TryFrom for {} {{", name)?; writeln!(out, " type Error = Uuid;")?; writeln!(out, " fn try_from(uuid: Uuid) -> Result {{")?; + writeln!(out, " #[allow(unreachable_patterns)]")?; writeln!(out, " match uuid.as_u128() {{")?; for entry in entries { writeln!(out, " {} => Ok(Self::{}),", entry.uuid()?.as_u128(), entry.rust_id(prefix))?; @@ -189,6 +190,7 @@ fn convert_ids(src: &str, dest: &str, name: &str, doc_name: &str) -> Result<(), writeln!(out, "impl TryFrom for {} {{", name)?; writeln!(out, " type Error = u16;")?; writeln!(out, " fn try_from(code: u16) -> Result {{")?; + writeln!(out, " #[allow(unreachable_patterns)]")?; writeln!(out, " match code {{")?; for entry in entries { writeln!(out, " {} => Ok(Self::{}),", entry.code, entry.rust_id())?;