Fixed a warning message for the NotNilValidationRule type in the library target.

This commit is contained in:
2025-10-12 17:38:35 +02:00
parent f32d24b26b
commit a47a3a464b
2 changed files with 23 additions and 15 deletions
@@ -29,6 +29,17 @@ struct NotEmptyValidationRule: InputValidationRule {
}
// MARK: - Definitions
extension InputValidationRule where Self == NotEmptyValidationRule {
// MARK: Constants
/// A validation rule that checks whether an input is empty or not.
static var notEmpty: Self { .init() }
}
// MARK: - Helpers
private extension NotEmptyValidationRule {
@@ -54,10 +65,3 @@ private extension NotEmptyValidationRule {
}
}
// MARK: - Constants
extension InputValidationRule where Self == NotEmptyValidationRule {
/// A validation rule that checks whether an input is empty or not.
static var notEmpty: Self { .init() }
}