mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
cleanup borrow issues in com
This commit is contained in:
parent
1bd8be2393
commit
ef718853b2
1 changed files with 2 additions and 2 deletions
|
|
@ -90,9 +90,9 @@ pub struct WlanStatusIpc {
|
|||
}
|
||||
impl WlanStatusIpc {
|
||||
#[allow(dead_code)]
|
||||
pub fn from_status(status: WlanStatus) -> Self {
|
||||
pub fn from_status(status: &WlanStatus) -> Self {
|
||||
WlanStatusIpc {
|
||||
ssid: status.ssid,
|
||||
ssid: status.ssid.to_owned(),
|
||||
link_state: status.link_state as u16,
|
||||
ipv4: status.ipv4.encode_u16(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue