From 81d8699b55dad570247cb14d2b3eea64270a83cf Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sat, 2 Nov 2024 08:30:34 +1100 Subject: [PATCH] units: Put no_std up top The `no_std` attribute has significant ramifications, as opposed to the clippy attributes etc. Put the `no_std` attribute up top so it catches the eye. This is also uniform with other crates in this repo. --- units/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/src/lib.rs b/units/src/lib.rs index 189e11aff..1d7f47ab0 100644 --- a/units/src/lib.rs +++ b/units/src/lib.rs @@ -4,6 +4,7 @@ //! //! This library provides basic types used by the Rust Bitcoin ecosystem. +#![no_std] // Experimental features we need. #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Coding conventions. @@ -13,7 +14,6 @@ // Exclude lints we don't think are valuable. #![allow(clippy::needless_question_mark)] // https://github.com/rust-bitcoin/rust-bitcoin/pull/2134 #![allow(clippy::manual_range_contains)] // More readable than clippy's format. -#![no_std] #[cfg(feature = "alloc")] extern crate alloc;