Ref: Typisierung von device_address korrigiert und überflüssige Klammern entfernt.

This commit is contained in:
2025-08-20 23:35:44 +02:00
parent d3f6e23965
commit a8c415d8f3

View File

@@ -77,7 +77,7 @@ fn mount_local() {
let mac_address: &str = get_config().local.device_mac.as_str(); let mac_address: &str = get_config().local.device_mac.as_str();
let mount_type: &str = &get_config().local.mount_type.as_str(); let mount_type: &str = &get_config().local.mount_type.as_str();
let mut device_address = None; let mut device_address: Option<String>;
let mut count: i32 = 0; let mut count: i32 = 0;
loop { loop {
@@ -142,7 +142,7 @@ fn mount_remote() {
is_mounted_as(mount_point, mount_type) { is_mounted_as(mount_point, mount_type) {
log("main", "Filesystem is already mounted. Doing nothing.", LogLevel::Info); log("main", "Filesystem is already mounted. Doing nothing.", LogLevel::Info);
} else { } else {
if (is_mounted(mount_point)) { if is_mounted(mount_point) {
log("main", "Filesystem is already mounted. Unmounting...", LogLevel::Info); log("main", "Filesystem is already mounted. Unmounting...", LogLevel::Info);
unmount(mount_point); unmount(mount_point);
} }