From 3771098c2fa3dea5ebfc8a2a32ceeabe0423a45b Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Fri, 3 Mar 2023 10:12:58 +0700 Subject: [PATCH] Change config validation --- src/config.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index 49b53b5..41736bf 100644 --- a/src/config.rs +++ b/src/config.rs @@ -241,9 +241,6 @@ fn validate_camera_config(camera_config: &CameraConfig) -> Result<(), Validation (None, None) => Err(ValidationError::new( "Either camera address or uid must be given", )), - (Some(_), Some(_)) => Err(ValidationError::new( - "Must provide either camera address or uid not both", - )), _ => Ok(()), } }