From c95d4c1d7926729ec04f11821bcc2b5c3283c9a0 Mon Sep 17 00:00:00 2001 From: alexmoon Date: Wed, 13 Jul 2022 15:27:22 -0400 Subject: Update to 2021 edition --- nrf-softdevice/Cargo.toml | 2 +- nrf-softdevice/src/ble/gatt_server/builder.rs | 1 - nrf-softdevice/src/ble/gatt_server/characteristic.rs | 2 -- nrf-softdevice/src/ble/gatt_traits.rs | 1 - nrf-softdevice/src/events.rs | 1 - 5 files changed, 1 insertion(+), 6 deletions(-) (limited to 'nrf-softdevice') 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 "] -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; -- cgit v1.2.3