diff --git a/sshproto/src/behaviour.rs b/sshproto/src/behaviour.rs index 8fd0e68bc0bfa0f6ad86d465c536a435daf5d1d8..ec34231ccfc93db4983b17824be47f46617793be 100644 --- a/sshproto/src/behaviour.rs +++ b/sshproto/src/behaviour.rs @@ -9,7 +9,6 @@ use core::task::{Waker,Poll}; use core::future::Future; use core::mem; use core::fmt; -use core::marker::PhantomData; use heapless::spsc::{Queue,Producer,Consumer}; @@ -50,8 +49,6 @@ pub struct Behaviour<'a> { inner: crate::async_behaviour::AsyncCliServ<'a>, #[cfg(not(feature = "std"))] inner: crate::block_behaviour::BlockCliServ<'a>, - - pub phantom: PhantomData<&'a ()>, } #[cfg(feature = "std")] @@ -59,14 +56,12 @@ impl<'a> Behaviour<'a> { pub fn new_async_client(b: &'a mut (dyn AsyncCliBehaviour + Send)) -> Self { Self { inner: async_behaviour::AsyncCliServ::Client(b), - phantom: PhantomData::default(), } } pub fn new_async_server(b: &'a mut (dyn AsyncServBehaviour + Send)) -> Self { Self { inner: async_behaviour::AsyncCliServ::Server(b), - phantom: PhantomData::default(), } } diff --git a/sshproto/src/kex.rs b/sshproto/src/kex.rs index ef3b8e444a9056e792aad1f744c2e4a59c1837f3..fc82b50bf7a7ae92081259c435581a9ee4799272 100644 --- a/sshproto/src/kex.rs +++ b/sshproto/src/kex.rs @@ -7,7 +7,6 @@ use { }; use core::fmt; -use core::marker::PhantomData; use sha2::Sha256; use digest::Digest; diff --git a/sshproto/src/packets.rs b/sshproto/src/packets.rs index ed4b73c4fa947f66bdcd514286498a55e9d9e6a7..89e2405dc63d9730fb9fb3eb43c709469fa21168 100644 --- a/sshproto/src/packets.rs +++ b/sshproto/src/packets.rs @@ -4,7 +4,6 @@ use core::borrow::BorrowMut; use core::cell::Cell; use core::fmt; -use core::marker::PhantomData; #[allow(unused_imports)] use { crate::error::{Error, Result, TrapBug},