From f91075a5984129bbabfd81e5cac8caed88849d02 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 26 Feb 2024 10:31:09 +0100 Subject: [PATCH] another small fix --- satrs/src/pus/mod.rs | 4 ++-- satrs/src/queue.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/satrs/src/pus/mod.rs b/satrs/src/pus/mod.rs index 73213c4..c9ebe54 100644 --- a/satrs/src/pus/mod.rs +++ b/satrs/src/pus/mod.rs @@ -2,6 +2,8 @@ //! //! This module contains structures to make working with the PUS C standard easier. //! The satrs-example application contains various usage examples of these components. +use crate::pool::{StoreAddr, StoreError}; +use crate::pus::verification::{TcStateAccepted, TcStateToken, VerificationToken}; use crate::queue::{GenericRecvError, GenericSendError}; use crate::ChannelId; use core::fmt::{Display, Formatter}; @@ -34,8 +36,6 @@ pub mod verification; #[cfg(feature = "alloc")] pub use alloc_mod::*; -use crate::pool::{StoreAddr, StoreError}; -use crate::pus::verification::{TcStateAccepted, TcStateToken, VerificationToken}; #[cfg(feature = "std")] pub use std_mod::*; diff --git a/satrs/src/queue.rs b/satrs/src/queue.rs index 9a18e08..5ba4bdc 100644 --- a/satrs/src/queue.rs +++ b/satrs/src/queue.rs @@ -1,6 +1,7 @@ use core::fmt::{Display, Formatter}; #[cfg(feature = "std")] use std::error::Error; +#[cfg(feature = "std")] use std::sync::mpsc; /// Generic error type for sending something via a message queue.