Skip to content

Commit 096267f

Browse files
committed
Fix two warnings (one of them a clippy warning)
1 parent 19404d6 commit 096267f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rand_chacha/src/chacha.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ mod test {
388388
#[test]
389389
fn test_chacha_serde_format_stability() {
390390
let j = r#"{"seed":[4,8,15,16,23,42,4,8,15,16,23,42,4,8,15,16,23,42,4,8,15,16,23,42,4,8,15,16,23,42,4,8],"stream":27182818284,"word_pos":314159265359}"#;
391-
let r: ChaChaRng = serde_json::from_str(&j).unwrap();
391+
let r: ChaChaRng = serde_json::from_str(j).unwrap();
392392
let j1 = serde_json::to_string(&r).unwrap();
393393
assert_eq!(j, j1);
394394
}

src/distributions/uniform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ mod tests {
14301430
#[test]
14311431
#[should_panic]
14321432
fn test_float_overflow() {
1433-
Uniform::from(::core::f64::MIN..::core::f64::MAX);
1433+
let _ = Uniform::from(::core::f64::MIN..::core::f64::MAX);
14341434
}
14351435

14361436
#[test]

0 commit comments

Comments
 (0)