Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Aug 12, 2024
1 parent f7a6057 commit 36215c7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/libwebrtc-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "libwebrtc-sys"
version = "0.0.0+127.0.6533.72"
edition = "2021"
rust-version = "1.62"
rust-version = "1.75"
publish = false
links = "webrtc"

Expand All @@ -12,7 +12,7 @@ fake-media = []
[dependencies]
anyhow = "1.0"
cxx = "1.0"
derive_more = { version = "1.0", features = ["deref", "deref_mut", "from"], default-features = false }
derive_more = { version = "1.0", features = ["deref", "deref_mut", "from"] }

[build-dependencies]
anyhow = "1.0"
Expand Down
4 changes: 1 addition & 3 deletions crates/libwebrtc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,7 @@ fn download_libwebrtc() -> anyhow::Result<()> {
// Force download if `INSTALL_WEBRTC=1`.
if env::var("INSTALL_WEBRTC").as_deref().unwrap_or("0") == "0" {
// Skip download if already downloaded and checksum matches.
if fs::metadata(&lib_dir)
.map(|m| m.is_dir())
.unwrap_or_default()
if fs::metadata(&lib_dir).is_ok_and(|m| m.is_dir())
&& fs::read(&checksum).unwrap_or_default().as_slice()
== expected_hash.as_bytes()
{
Expand Down
5 changes: 2 additions & 3 deletions crates/native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "medea-flutter-webrtc-native"
edition = "2021"
rust-version = "1.70"
rust-version = "1.75"
publish = false

[lib]
Expand All @@ -11,7 +11,7 @@ crate-type = ["cdylib"]
anyhow = "1.0"
cxx = "1.0"
dashmap = "6.0"
derive_more = { version = "1.0", features = ["display", "from", "into", "as_ref"], default-features = false }
derive_more = { version = "1.0", features = ["as_ref", "display", "from", "into"] }
flutter_rust_bridge = { version = "=1.82.4", default-features = false }
flutter_rust_bridge_macros = { version = "=1.82.4", default-features = false }
lazy_static = "1.5"
Expand All @@ -28,7 +28,6 @@ pulse = { version = "2.28", package = "libpulse-binding" }

[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.58", features = ["implement", "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_Media_Audio", "Win32_System_Com", "Win32_UI_Shell_PropertiesSystem", "Win32_UI_WindowsAndMessaging"] }
windows-core = "0.58"

[build-dependencies]
anyhow = "1.0"
Expand Down
8 changes: 4 additions & 4 deletions crates/native/src/devices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,13 +751,13 @@ pub unsafe fn init() {

let Ok(hwnd) = hwnd else {
log::error!(
"Failed to create window so on device \
change listener is disabled",
"Failed to create window so on device change listener is \
disabled",
);
return;
};

let _ = ShowWindow(hwnd, SW_HIDE);
_ = ShowWindow(hwnd, SW_HIDE);

let mut msg: MSG = mem::zeroed();

Expand All @@ -766,7 +766,7 @@ pub unsafe fn init() {
break;
}

let _ = TranslateMessage(&msg);
_ = TranslateMessage(&msg);
DispatchMessageW(&msg);
}
});
Expand Down

0 comments on commit 36215c7

Please sign in to comment.