Skip to content

Commit

Permalink
Always set #![no_std] to fix redundant import warning (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored Mar 4, 2024
1 parent 334a837 commit f7b621f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![no_std]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down Expand Up @@ -113,6 +113,8 @@
#[cfg(not(feature = "std"))]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
#[cfg(feature = "std")]
extern crate std as alloc;

#[cfg(feature = "serde")]
Expand Down

0 comments on commit f7b621f

Please sign in to comment.