summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nrf-softdevice-macro/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/nrf-softdevice-macro/src/lib.rs b/nrf-softdevice-macro/src/lib.rs
index 3b71c6d..cf324e1 100644
--- a/nrf-softdevice-macro/src/lib.rs
+++ b/nrf-softdevice-macro/src/lib.rs
@@ -381,6 +381,7 @@ pub fn gatt_service(args: TokenStream, item: TokenStream) -> TokenStream {
let result = quote! {
#struc
+ #[allow(unused)]
impl #struct_name {
#struct_vis fn new(sd: &mut ::nrf_softdevice::Softdevice) -> Result<Self, #ble::gatt_server::RegisterError>
{
@@ -407,7 +408,7 @@ pub fn gatt_service(args: TokenStream, item: TokenStream) -> TokenStream {
}
}
- #[allow(dead_code)]
+ #[allow(unused)]
#struc_vis enum #event_enum_name {
#code_event_enum
}
@@ -624,6 +625,7 @@ pub fn gatt_client(args: TokenStream, item: TokenStream) -> TokenStream {
let result = quote! {
#struc
+ #[allow(unused)]
impl #struct_name {
#code_impl
}