From 67511ed03f91a8230e08bd8e45202daaa83536ba Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 28 Nov 2023 11:58:52 +1100 Subject: [PATCH] Move no_std above comment Currently the no_std attribute is below a comment that does not relate to it. For slightly improved clarity move the attribute above the comment. --- io/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/src/lib.rs b/io/src/lib.rs index 2b8008f1..49862308 100644 --- a/io/src/lib.rs +++ b/io/src/lib.rs @@ -13,9 +13,9 @@ //! This traits are not one-for-one drop-ins, but are as close as possible while still implementing //! `std::io`'s traits without unnecessary complexity. +#![cfg_attr(not(feature = "std"), no_std)] // Experimental features we need. #![cfg_attr(docsrs, feature(doc_auto_cfg))] -#![cfg_attr(not(feature = "std"), no_std)] #[cfg(any(feature = "alloc", feature = "std"))] extern crate alloc;