File tree Expand file tree Collapse file tree 5 files changed +9
-3
lines changed Expand file tree Collapse file tree 5 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ install:
10
10
script :
11
11
- cargo fmt -- --version
12
12
- cargo fmt -- --check
13
- - cargo clippy --all-features -- -D clippy::all
13
+ - cargo clippy --all-features --
14
14
- ./scripts/build-all.sh
15
15
- cargo test --features nightly
16
16
- cargo bench --features nightly
Original file line number Diff line number Diff line change 3
3
#![ allow(
4
4
clippy:: write_with_newline,
5
5
clippy:: type_complexity,
6
- clippy:: match_ref_pats
6
+ clippy:: match_ref_pats,
7
+ clippy:: needless_doctest_main,
7
8
) ]
8
9
#![ deny( unused_mut) ]
9
10
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl WebSocketKey {
65
65
}
66
66
}
67
67
68
- static MAGIC_GUID : & ' static str = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" ;
68
+ static MAGIC_GUID : & str = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" ;
69
69
70
70
/// Represents a Sec-WebSocket-Accept header
71
71
#[ derive( PartialEq , Clone , Copy ) ]
Original file line number Diff line number Diff line change 9
9
//! Note that there is no normal example of usage so far. See usual `websocket` crate or
10
10
//! alternative like `tungstenite`.
11
11
12
+ #![ allow(
13
+ clippy:: match_ref_pats,
14
+ clippy:: needless_doctest_main,
15
+ ) ]
12
16
extern crate byteorder;
13
17
14
18
#[ cfg( feature = "async" ) ]
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ impl Error for WebSocketError {
59
59
}
60
60
}
61
61
62
+ #[ allow( deprecated) ]
62
63
fn cause ( & self ) -> Option < & dyn Error > {
63
64
match * self {
64
65
WebSocketError :: IoError ( ref error) => Some ( error) ,
You can’t perform that action at this time.
0 commit comments