chore(gui): expect selected_device rather than unwrap

This commit is contained in:
Rudxain 2024-07-10 21:30:37 -04:00 committed by Ricardo Fernández Serrata
commit b01d310601

View file

@ -198,7 +198,7 @@ impl Application for UadGui {
for u in self
.selected_device
.as_ref()
.unwrap()
.expect("Device should be selected")
.user_list
.iter()
.filter(|&u| !u.protected)