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.
This commit is contained in:
Tobin C. Harding 2024-11-02 08:30:34 +11:00
parent 3e332c3839
commit 81d8699b55
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -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;