type BoxError = Box; type BoxResult = Result; fn main() -> BoxResult<()> { let mut context = nfc1::Context::new()?; let devices = context.list_devices(10)?; for device in &devices { println!("{}", device) } Ok(()) }