summaryrefslogtreecommitdiff
path: root/nrf-softdevice-macro/src
diff options
context:
space:
mode:
authorUlf Lilleengen <ulf.lilleengen@gmail.com>2021-10-06 18:45:40 +0200
committerUlf Lilleengen <ulf.lilleengen@gmail.com>2021-10-06 18:45:40 +0200
commitab48ad7f39900bdc9865ea65e800c16e6e128185 (patch)
tree2d80e74fd26cc6c505a6f5b17708e366ba12c544 /nrf-softdevice-macro/src
parent8d78ed20f1313d00d8727f41383413a13c23d457 (diff)
downloadnrf-softdevice-ab48ad7f39900bdc9865ea65e800c16e6e128185.zip
Simplify further
Diffstat (limited to 'nrf-softdevice-macro/src')
-rw-r--r--nrf-softdevice-macro/src/lib.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/nrf-softdevice-macro/src/lib.rs b/nrf-softdevice-macro/src/lib.rs
index 6cefa94..8e52bf1 100644
--- a/nrf-softdevice-macro/src/lib.rs
+++ b/nrf-softdevice-macro/src/lib.rs
@@ -114,15 +114,6 @@ pub fn gatt_server(args: TokenStream, item: TokenStream) -> TokenStream {
let ble = quote!(::nrf_softdevice::ble);
- let service_handle = format_ident!("service_handle");
- fields.push(syn::Field {
- ident: Some(service_handle),
- ty: syn::Type::Verbatim(quote!(u16).into()),
- attrs: Vec::new(),
- colon_token: Default::default(),
- vis: syn::Visibility::Inherited,
- });
-
for ch in &chars {
let name_pascal = inflector::cases::pascalcase::to_pascal_case(&ch.name);
let char_name = format_ident!("{}", ch.name);
@@ -262,7 +253,6 @@ pub fn gatt_server(args: TokenStream, item: TokenStream) -> TokenStream {
#code_register_chars
Ok(Self {
- service_handle,
#code_register_init
})
}