perf: replace Mutex with RwLock #16
Annotations
2 errors and 1 warning
build
Canceling since a higher priority waiting request for 'build-refs/heads/dev' exists
|
build
The operation was canceled.
|
you should consider adding a `Default` implementation for `Heartbeat`:
tuic/src/protocol/heartbeat.rs#L16
warning: you should consider adding a `Default` implementation for `Heartbeat`
--> tuic/src/protocol/heartbeat.rs:16:5
|
16 | / pub const fn new() -> Self {
17 | | Self
18 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
12 + impl Default for Heartbeat {
13 + fn default() -> Self {
14 + Self::new()
15 + }
16 + }
|
|