feat: custom option getter

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-10-18 02:40:09 +01:00
parent 7c43e0f7ab
commit a1668bb277
21 changed files with 2445 additions and 606 deletions

View File

@@ -38,6 +38,6 @@ pub fn get_camera(device_id: Option<&str>) -> anyhow::Result<Camera> {
None => get_connected_cameras()?
.into_iter()
.next()
.ok_or_else(|| anyhow!("No supported devices connected.")),
.ok_or_else(|| anyhow!("No supported devices connected")),
}
}