Skip to content

Commit c16fbfa

Browse files
committed
fix stdweb
1 parent 63e27ec commit c16fbfa

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/wasm32_stdweb.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77
// except according to those terms.
88

99
//! Implementation for WASM via stdweb
10-
11-
use std::cell::RefCell;
12-
use std::mem;
1310
use std::num::NonZeroU32;
11+
use std::sync::atomic::{AtomicUsize, Ordering};
1412

1513
use stdweb::unstable::TryInto;
1614
use stdweb::web::error::Error as WebError;
1715

1816
use Error;
19-
use utils::use_init;
2017

2118
// replace with AtomicU8 on stabilization and MSRV bump
2219
static RNG_STATE: AtomicUsize = AtomicUsize::new(0);
@@ -35,7 +32,7 @@ pub fn getrandom_inner(dest: &mut [u8]) -> Result<(), Error> {
3532
STATE_INIT_DONE | STATE_USE_BROWSER
3633
} else {
3734
STATE_INIT_DONE
38-
}
35+
},
3936
Ordering::Acquire,
4037
);
4138
use_browser

0 commit comments

Comments
 (0)