[refactor](trx-frontend-rigctl): adapt to Cow-returning mode_to_string
Update rig_mode_to_str to call .into_owned() on the new Cow return. https://claude.ai/code/session_01XzurkeuUmamBuhQwxVy7T4 Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -376,7 +376,7 @@ fn current_snapshot(state_rx: &watch::Receiver<RigState>) -> Option<RigSnapshot>
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn rig_mode_to_str(mode: &RigMode) -> String {
|
fn rig_mode_to_str(mode: &RigMode) -> String {
|
||||||
mode_to_string(mode)
|
mode_to_string(mode).into_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn dump_state_lines(snapshot: &RigSnapshot) -> Vec<String> {
|
fn dump_state_lines(snapshot: &RigSnapshot) -> Vec<String> {
|
||||||
|
|||||||
Reference in New Issue
Block a user