refactor(config): generate scalar validation boundaries
This commit is contained in:
1 parent
afafd126d7
commit
8134235f48
29 files changed
+1008
-480
No files matched your search
@@ -1,4 +1,4 @@
|
||||
use kaptan_config::{ConfigValidate, ConfigViolation, ValidateFields};
|
||||
use kaptan_config::ConfigValidate;
|
||||
|
||||
#[derive(Clone, Copy, ConfigValidate)]
|
||||
pub(super) struct SafetyCandidate {
|
||||
@@ -12,9 +12,3 @@ pub(super) struct SafetyCandidate {
|
||||
)]
|
||||
pub(super) prearm_dwell_microseconds: u64,
|
||||
}
|
||||
|
||||
impl SafetyCandidate {
|
||||
pub(super) fn validate(self) -> Result<(), ConfigViolation> {
|
||||
self.validate_fields()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user