Skip to content

Commit 0b808de

Browse files
bors[bot]dflemstr
andauthored
Merge #22
22: Disable no_std when the std feature is present r=japaric a=dflemstr This is for example needed when implementing the `std::error::Error` trait which is only possible if the `std` crate is available Co-authored-by: David Flemström <dflemstr@spotify.com>
2 parents 87794c2 + 711a336 commit 0b808de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
#![deny(rust_2018_compatibility)]
6767
#![deny(rust_2018_idioms)]
6868
#![deny(warnings)]
69-
#![no_std]
69+
#![cfg_attr(not(feature = "std"), no_std)]
7070

7171
pub mod de;
7272
pub mod ser;

0 commit comments

Comments
 (0)