Skip to content

Commit b33335c

Browse files
committed
Make no_std
1 parent 8fa8b22 commit b33335c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![allow(clippy::unreadable_literal, clippy::upper_case_acronyms)]
2+
#![no_std]
23

34
//! An MT19937 Mersenne Twister rng implementation, with the goal of being
45
//! compatible with CPython's `_random` module.
@@ -80,8 +81,8 @@ impl Default for MT19937 {
8081
MT19937_DEFAULT
8182
}
8283
}
83-
impl std::fmt::Debug for MT19937 {
84-
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
84+
impl core::fmt::Debug for MT19937 {
85+
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
8586
f.pad("MT19937")
8687
}
8788
}

0 commit comments

Comments
 (0)