Skip to content

Commit 345ee50

Browse files
committed
error: Fixup "use" statements
1 parent d7d7fbe commit 345ee50

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ cfg_if! {
243243
/// In general, `getrandom` will be fast enough for interactive usage, though
244244
/// significantly slower than a user-space CSPRNG; for the latter consider
245245
/// [`rand::thread_rng`](https://docs.rs/rand/*/rand/fn.thread_rng.html).
246-
pub fn getrandom(dest: &mut [u8]) -> Result<(), error::Error> {
246+
pub fn getrandom(dest: &mut [u8]) -> Result<(), Error> {
247247
if dest.is_empty() {
248248
return Ok(());
249249
}

src/vxworks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
// except according to those terms.
88

99
//! Implementation for VxWorks
10-
use crate::error::Error;
1110
use crate::util_libc::last_os_error;
11+
use crate::Error;
1212
use core::sync::atomic::{AtomicBool, Ordering::Relaxed};
1313

1414
pub fn getrandom_inner(dest: &mut [u8]) -> Result<(), Error> {

src/wasm32_stdweb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
extern crate std;
1111

1212
use core::mem;
13+
use std::sync::Once;
1314

1415
use stdweb::js;
1516
use stdweb::unstable::TryInto;
1617
use stdweb::web::error::Error as WebError;
1718

1819
use crate::Error;
19-
use std::sync::Once;
2020

2121
#[derive(Clone, Copy, Debug)]
2222
enum RngSource {

0 commit comments

Comments
 (0)