Skip to content

Commit b3551a4

Browse files
committed
Adjust clippy, minor fixes
1 parent df07445 commit b3551a4

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ install:
1010
script:
1111
- cargo fmt -- --version
1212
- cargo fmt -- --check
13-
- cargo clippy --all-features -- -D clippy::all
13+
- cargo clippy --all-features --
1414
- ./scripts/build-all.sh
1515
- cargo test --features nightly
1616
- cargo bench --features nightly

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#![allow(
44
clippy::write_with_newline,
55
clippy::type_complexity,
6-
clippy::match_ref_pats
6+
clippy::match_ref_pats,
7+
clippy::needless_doctest_main,
78
)]
89
#![deny(unused_mut)]
910

websocket-base/src/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl WebSocketKey {
6565
}
6666
}
6767

68-
static MAGIC_GUID: &'static str = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
68+
static MAGIC_GUID: &str = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
6969

7070
/// Represents a Sec-WebSocket-Accept header
7171
#[derive(PartialEq, Clone, Copy)]

websocket-base/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
//! Note that there is no normal example of usage so far. See usual `websocket` crate or
1010
//! alternative like `tungstenite`.
1111
12+
#![allow(
13+
clippy::match_ref_pats,
14+
clippy::needless_doctest_main,
15+
)]
1216
extern crate byteorder;
1317

1418
#[cfg(feature = "async")]

websocket-base/src/result.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ impl Error for WebSocketError {
5959
}
6060
}
6161

62+
#[allow(deprecated)]
6263
fn cause(&self) -> Option<&dyn Error> {
6364
match *self {
6465
WebSocketError::IoError(ref error) => Some(error),

0 commit comments

Comments
 (0)