Skip to content

Commit

Permalink
Fix no_std errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Nov 11, 2017
1 parent 08dc010 commit 7f3c9b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ i128_support = ["rand_core/i128_support"]

[dependencies]
libc = "0.2"
rand_core = { path = 'rand_core' }

[dependencies.rand_core]
path = 'rand_core'
default-features = false

[target.'cfg(target_os = "fuchsia")'.dependencies]
fuchsia-zircon = "^0.2.1"
Expand Down
1 change: 1 addition & 0 deletions src/jitter_rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ impl JitterRng {
/// # try_main().unwrap();
/// # }
/// ```
#[cfg(feature="std")]
pub fn timer_stats(&mut self, var_rounds: bool) -> i64 {
let time = get_nstime();
self.memaccess(var_rounds);
Expand Down

0 comments on commit 7f3c9b0

Please sign in to comment.