Skip to content

Commit 707c51c

Browse files
authored
upgrade minimal version of cfg-if to 1.6 to fix macro resolution (webrtc-rs#400)
This should fix the issue webrtc-rs#373 it works on master and works on webrtc-rs#376 Co-authored-by: Tipuch <[email protected]>
1 parent bf68589 commit 707c51c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

util/src/vnet/nat.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ impl NetworkAddressTranslator {
299299
to.set_destination_addr(&format!("{dst_ip}:{dst_port}"))?;
300300
} else {
301301
return Err(Error::Other(format!(
302-
"drop {} as {:?}",
303-
from,
302+
"drop {from} as {:?}",
304303
Error::ErrNoAssociatedLocalAddress
305304
)));
306305
}

webrtc/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ pem = { version = "1", optional = true }
5555
# https://github.com/est31/rcgen/pull/88
5656
# Version 0.3.14 requires Rust 1.59.0 which we don't currently support
5757
time = "~0.3.1"
58+
# fixes "error: cannot find macro `__cfg_if_items` in this scope"
59+
# https://github.com/rust-lang/packed_simd/commit/127a0fc233dbab880e33aeaccdd23e799a8b798b
60+
cfg-if = "0.1.6"
5861

5962
[dev-dependencies]
6063
tokio-test = "0.4.0" # must match the min version of the `tokio` crate above

0 commit comments

Comments
 (0)