diff --git a/app-proto/src/specified.rs b/app-proto/src/specified.rs index 0422291..cfe7fc3 100644 --- a/app-proto/src/specified.rs +++ b/app-proto/src/specified.rs @@ -34,7 +34,7 @@ impl TryFrom for SpecifiedValue { fn try_from(spec: String) -> Result { if spec.is_empty() { - Ok(SpecifiedValue { spec: spec, value: None }) + Ok(SpecifiedValue::from_empty_spec()) } else { spec.parse::().map( |value| SpecifiedValue { spec: spec, value: Some(value) }