Skip to content

Commit

Permalink
Silence unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Feb 2, 2018
1 parent a9e2f3e commit 1cff629
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1073,9 +1073,9 @@ impl Rng for EntropyRng {
Ok(jitter_rng) => {
switch_rng = Some(EntropySource::Jitter(jitter_rng));
}
Err(jitter_error) => {
Err(_jitter_error) => {
warn!("EntropyRng: JitterRng failed: {}",
jitter_error);
_jitter_error);
return Err(os_rng_error);
}
}
Expand All @@ -1091,9 +1091,9 @@ impl Rng for EntropyRng {
Ok(jitter_rng) => {
switch_rng = Some(EntropySource::Jitter(jitter_rng));
}
Err(jitter_error) => {
Err(_jitter_error) => {
warn!("EntropyRng: JitterRng failed: {}",
jitter_error);
_jitter_error);
return Err(os_rng_error);
}
}
Expand Down

0 comments on commit 1cff629

Please sign in to comment.