Ref: Typisierung von device_address korrigiert und überflüssige Klammern entfernt.
This commit is contained in:
@@ -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<String>;
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user