Skip to content

Commit 73f3187

Browse files
committed
Fix build on macOS
1 parent db796de commit 73f3187

3 files changed

Lines changed: 11 additions & 23 deletions

File tree

src-tauri/Cargo.lock

Lines changed: 9 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/src/utils.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#[cfg(not(target_os = "macos"))]
22
use std::str::FromStr;
3-
#[cfg(target_os = "macos")]
4-
use std::time::Duration;
53
use std::{env, path::Path, process::Command, time::Duration};
64

75
use base64::{prelude::BASE64_STANDARD, Engine};

src-tauri/src/window.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub const NEW_UI_HEIGHT: f64 = 675.0;
1212
pub const OLD_UI_WIDTH: f64 = 920.0;
1313
pub const OLD_UI_HEIGHT: f64 = 720.0;
1414

15+
#[must_use]
1516
pub fn new_ui_url() -> WebviewUrl {
1617
if cfg!(defguard_client_dev) {
1718
WebviewUrl::External("http://localhost:5072".parse().unwrap())
@@ -20,6 +21,7 @@ pub fn new_ui_url() -> WebviewUrl {
2021
}
2122
}
2223

24+
#[must_use]
2325
pub fn old_ui_url() -> WebviewUrl {
2426
if cfg!(defguard_client_dev) {
2527
WebviewUrl::External("http://localhost:5071".parse().unwrap())

0 commit comments

Comments
 (0)