From a8c415d8f386e4e8db827d1f130abd9375241670 Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Wed, 20 Aug 2025 23:35:44 +0200 Subject: [PATCH] =?UTF-8?q?Ref:=20Typisierung=20von=20`device=5Faddress`?= =?UTF-8?q?=20korrigiert=20und=20=C3=BCberfl=C3=BCssige=20Klammern=20entfe?= =?UTF-8?q?rnt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 59b98c6..07e9fd1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,7 +77,7 @@ fn mount_local() { let mac_address: &str = get_config().local.device_mac.as_str(); let mount_type: &str = &get_config().local.mount_type.as_str(); - let mut device_address = None; + let mut device_address: Option; let mut count: i32 = 0; loop { @@ -142,7 +142,7 @@ fn mount_remote() { is_mounted_as(mount_point, mount_type) { log("main", "Filesystem is already mounted. Doing nothing.", LogLevel::Info); } else { - if (is_mounted(mount_point)) { + if is_mounted(mount_point) { log("main", "Filesystem is already mounted. Unmounting...", LogLevel::Info); unmount(mount_point); }