Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
upgrade to v0.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rainliu committed Dec 18, 2021
1 parent ee77d23 commit d51c73a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webrtc-util"
version = "0.5.2"
version = "0.5.3"
authors = ["Rain Liu <yliu@webrtc.rs>"]
edition = "2018"
description = "Utilities for WebRTC.rs stack"
Expand All @@ -21,9 +21,9 @@ marshal = []
sync = []

[dependencies]
tokio = { version = "1.13.0", features = ["full"] }
tokio = { version = "1.15.0", features = ["full"] }
lazy_static = "1.4.0"
async-trait = "0.1.51"
async-trait = "0.1.52"
ipnet = "2.3.1"
log = "0.4.14"
rand = "0.8.4"
Expand Down
9 changes: 2 additions & 7 deletions src/replay_detector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,8 @@ impl ReplayDetector for WrappedSlidingWindowDetector {
}
}

pub struct NoOpReplayDetector {}

impl Default for NoOpReplayDetector {
fn default() -> Self {
NoOpReplayDetector {}
}
}
#[derive(Default)]
pub struct NoOpReplayDetector;

impl ReplayDetector for NoOpReplayDetector {
fn check(&mut self, _: u64) -> bool {
Expand Down
4 changes: 2 additions & 2 deletions src/vnet/nat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ impl NetworkAddressTranslator {
}

let outbound_map = self.outbound_map.lock().await;
outbound_map.get(o_key).map(|m| Arc::clone(m))
outbound_map.get(o_key).map(Arc::clone)
}

// caller must hold the mutex
Expand Down Expand Up @@ -449,7 +449,7 @@ impl NetworkAddressTranslator {
}

let inbound_map = self.inbound_map.lock().await;
inbound_map.get(i_key).map(|m| Arc::clone(m))
inbound_map.get(i_key).map(Arc::clone)
}

// caller must hold the mutex
Expand Down

0 comments on commit d51c73a

Please sign in to comment.