Skip to content

Commit b1f7003

Browse files
authored
Merge pull request #10 from Alexhuszagh/nostd
Fix `no_std` support.
2 parents 9fdcdca + 86c93dd commit b1f7003

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
//! assert_eq!(&s[n..], "foo");
3636
//! ```
3737
38+
#![cfg_attr(not(feature = "std"), no_std)]
3839
#![allow(unused_unsafe)]
3940
#![warn(unsafe_op_in_unsafe_fn)]
4041
#![warn(clippy::all, clippy::pedantic, clippy::nursery, clippy::cargo)]

0 commit comments

Comments
 (0)