Buttplug sex toy control library

chore: Fix up example for printing output types on a feature

+2 -4
+2 -4
crates/examples/src/bin/device_control.rs
··· 46 46 println!("{} supports these outputs:", device.name()); 47 47 for output_type in OutputType::iter() { 48 48 for (_, feature) in device.device_features() { 49 - for (output, _) in feature.feature().output().as_ref().unwrap_or(&HashMap::new()) { 50 - if output_type == *output { 51 - println!("- {}", output); 52 - } 49 + if let Some(output) = feature.feature().output() && output.contains(output_type) { 50 + println!("- {}", output_type); 53 51 } 54 52 } 55 53 }