Skip to content

Commit 05404ba

Browse files
committed
Manually fix remaining clippy lints
1 parent a49435a commit 05404ba

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

tests/message_from_boxed_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static A: Allocator = Allocator;
2626
#[test]
2727
fn message_from_boxed_slice() {
2828
let mut b: Box<[u8]> = Box::new([0u8; 42]);
29-
CHECK_PTR.store(b.as_mut_ptr() as *mut u8, Ordering::SeqCst);
29+
CHECK_PTR.store(b.as_mut_ptr(), Ordering::SeqCst);
3030
let _ = zmq::Message::from(b);
3131
assert_eq!(CHECK_PTR.load(Ordering::SeqCst), ptr::null_mut());
3232
}

tests/monitor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
mod common;
33

44
use std::str;
5-
use std::u16;
65

76
fn version_ge_4_3() -> bool {
87
let (major, minor, _) = zmq::version();

tests/z85.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ fn test_decode_errors() {
3333
}
3434
}
3535

36+
/*
3637
// Valid input for z85 encoding (i.e. a slice of bytes with its length
3738
// being a multiple of 4)
3839
#[derive(Clone, Debug)]
3940
struct Input(Vec<u8>);
4041
41-
/*
4242
// Disabled because quickcheck doesn't expose gen_range and gen anymore
4343
4444
impl Arbitrary for Input {

0 commit comments

Comments
 (0)