aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/uarte.rs
diff options
context:
space:
mode:
authorxoviat <[email protected]>2021-03-02 00:32:23 +0100
committerDario Nieuwenhuis <[email protected]>2021-03-02 00:32:23 +0100
commit9626aee7dbe5fe454a014beee82383bc3f102a91 (patch)
tree6d155c12dd0563056874ecc97d57c6ac521bcf5c /embassy-nrf/src/uarte.rs
parent084b64053a562797fa3d88bb7dde9ddd8db792f1 (diff)
Move traits to separate crate.
Diffstat (limited to 'embassy-nrf/src/uarte.rs')
-rw-r--r--embassy-nrf/src/uarte.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-nrf/src/uarte.rs b/embassy-nrf/src/uarte.rs
index 9d5ff81aa..0cc9790b2 100644
--- a/embassy-nrf/src/uarte.rs
+++ b/embassy-nrf/src/uarte.rs
@@ -207,7 +207,7 @@ where
207 } 207 }
208} 208}
209 209
210impl<T: Instance> embassy::uart::Uart for Uarte<T> { 210impl<T: Instance> embassy::traits::uart::Uart for Uarte<T> {
211 type ReceiveFuture<'a> = ReceiveFuture<'a, T>; 211 type ReceiveFuture<'a> = ReceiveFuture<'a, T>;
212 type SendFuture<'a> = SendFuture<'a, T>; 212 type SendFuture<'a> = SendFuture<'a, T>;
213 213
@@ -287,7 +287,7 @@ impl<'a, T> Future for SendFuture<'a, T>
287where 287where
288 T: Instance, 288 T: Instance,
289{ 289{
290 type Output = Result<(), embassy::uart::Error>; 290 type Output = Result<(), embassy::traits::uart::Error>;
291 291
292 fn poll(self: core::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { 292 fn poll(self: core::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
293 let Self { uarte, buf } = unsafe { self.get_unchecked_mut() }; 293 let Self { uarte, buf } = unsafe { self.get_unchecked_mut() };
@@ -355,7 +355,7 @@ impl<'a, T> Future for ReceiveFuture<'a, T>
355where 355where
356 T: Instance, 356 T: Instance,
357{ 357{
358 type Output = Result<(), embassy::uart::Error>; 358 type Output = Result<(), embassy::traits::uart::Error>;
359 359
360 fn poll(self: core::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { 360 fn poll(self: core::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
361 let Self { uarte, buf } = unsafe { self.get_unchecked_mut() }; 361 let Self { uarte, buf } = unsafe { self.get_unchecked_mut() };