summaryrefslogtreecommitdiff
path: root/nrf-softdevice
diff options
context:
space:
mode:
authoralexmoon <alex.r.moon@gmail.com>2022-07-13 15:27:22 -0400
committeralexmoon <alex.r.moon@gmail.com>2022-07-14 16:35:37 -0400
commitc95d4c1d7926729ec04f11821bcc2b5c3283c9a0 (patch)
tree05921d163b16b3e872765f9d57ca1f8b76ad2a2d /nrf-softdevice
parentee22e26594b99b04fbd3ab56cf677fdfa74ea42a (diff)
downloadnrf-softdevice-c95d4c1d7926729ec04f11821bcc2b5c3283c9a0.zip
Update to 2021 edition
Diffstat (limited to 'nrf-softdevice')
-rw-r--r--nrf-softdevice/Cargo.toml2
-rw-r--r--nrf-softdevice/src/ble/gatt_server/builder.rs1
-rw-r--r--nrf-softdevice/src/ble/gatt_server/characteristic.rs2
-rw-r--r--nrf-softdevice/src/ble/gatt_traits.rs1
-rw-r--r--nrf-softdevice/src/events.rs1
5 files changed, 1 insertions, 6 deletions
diff --git a/nrf-softdevice/Cargo.toml b/nrf-softdevice/Cargo.toml
index 71b73de..9b7df74 100644
--- a/nrf-softdevice/Cargo.toml
+++ b/nrf-softdevice/Cargo.toml
@@ -2,7 +2,7 @@
name = "nrf-softdevice"
version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
-edition = "2018"
+edition = "2021"
[features]
diff --git a/nrf-softdevice/src/ble/gatt_server/builder.rs b/nrf-softdevice/src/ble/gatt_server/builder.rs
index 4d40258..e439de9 100644
--- a/nrf-softdevice/src/ble/gatt_server/builder.rs
+++ b/nrf-softdevice/src/ble/gatt_server/builder.rs
@@ -1,6 +1,5 @@
#![allow(dead_code)]
-use core::convert::TryInto;
use core::marker::PhantomData;
use core::mem;
use core::ptr::null;
diff --git a/nrf-softdevice/src/ble/gatt_server/characteristic.rs b/nrf-softdevice/src/ble/gatt_server/characteristic.rs
index 6bc33c2..cdc44a1 100644
--- a/nrf-softdevice/src/ble/gatt_server/characteristic.rs
+++ b/nrf-softdevice/src/ble/gatt_server/characteristic.rs
@@ -1,5 +1,3 @@
-use core::convert::TryInto;
-
use crate::ble::SecurityMode;
use crate::raw;
diff --git a/nrf-softdevice/src/ble/gatt_traits.rs b/nrf-softdevice/src/ble/gatt_traits.rs
index 2b27f8f..c2969c8 100644
--- a/nrf-softdevice/src/ble/gatt_traits.rs
+++ b/nrf-softdevice/src/ble/gatt_traits.rs
@@ -1,4 +1,3 @@
-use core::convert::TryInto;
use core::{mem, slice};
use heapless::{String, Vec};
diff --git a/nrf-softdevice/src/events.rs b/nrf-softdevice/src/events.rs
index c9d4362..dd60c64 100644
--- a/nrf-softdevice/src/events.rs
+++ b/nrf-softdevice/src/events.rs
@@ -1,4 +1,3 @@
-use core::convert::TryFrom;
use core::mem::MaybeUninit;
use core::task::Poll;