Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78884c67 authored by Ying Hsu's avatar Ying Hsu
Browse files

floss: Remove build warnings for redundant cloning of str

Bug: 316275783
Tag: #floss
Test: mmm packages/modules/Bluetooth
Flag: EXEMPT, floss only change

Change-Id: If1d27e7a78605401e58083d9f2fbebd87560fc9c
parent ebe3489f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -489,7 +489,7 @@ fn convert_from_bluez_device(
                                return false;
                            }
                        };
                        floss_conf.set(addr_lower.as_str(), key.key.clone(), Some(new_val));
                        floss_conf.set(addr_lower.as_str(), key.key, Some(new_val));
                    }
                }
                None => {
@@ -810,7 +810,7 @@ fn convert_floss_conf(filename: &str) {
                            continue;
                        }
                    };
                    bluez_info.set(key.section, key.key.clone(), Some(new_val));
                    bluez_info.set(key.section, key.key, Some(new_val));
                    continue;
                }
                None => {
@@ -828,7 +828,7 @@ fn convert_floss_conf(filename: &str) {
                            continue;
                        }
                    };
                    bluez_hid.set(key.section, key.key.clone(), Some(new_val));
                    bluez_hid.set(key.section, key.key, Some(new_val));
                }
                None => {
                    debug!("No key match: {}", k)