From 15a749ed4890ff0003e16f64e0bb77cca6174118 Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Fri, 13 Nov 2026 10:12:42 -0700 Subject: [PATCH] tests: build live test interface entries through the constructor --- .../tests/python_telephone_live_interop.rs | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/crates/lxst-telephony/tests/python_telephone_live_interop.rs b/crates/lxst-telephony/tests/python_telephone_live_interop.rs index 60acfde..c32ecae 100644 --- a/crates/lxst-telephony/tests/python_telephone_live_interop.rs +++ b/crates/lxst-telephony/tests/python_telephone_live_interop.rs @@ -375,21 +375,19 @@ fn register_interface_entry( inbound: handle.direction.inbound, outbound: handle.direction.outbound, }; - let entry = InterfaceEntry { - owner: handle.owner, - packet_capacity: handle.packet_capacity, - online: Some(handle.online), - rxb: handle.rxb, - txb: handle.txb, - ..InterfaceEntry::new( - handle.name, - mode, - direction, - handle.bitrate, - handle.mtu, - handle.tx, - ) - }; + let mut entry = InterfaceEntry::new( + handle.name, + mode, + direction, + handle.bitrate, + handle.mtu, + handle.tx, + ); + entry.owner = handle.owner; + entry.packet_capacity = handle.packet_capacity; + entry.online = Some(handle.online); + entry.rxb = handle.rxb; + entry.txb = handle.txb; (handle.id, entry, handle.read_task) }