mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-07 08:21:56 +00:00

* chore: rename flowy-folder2 to flowy-folder * chore: rename flowy-document2 to flowy-document * chore: fix test * chore: move lib-infra crate * chore: remove shared-lib * chore: fix clippy
9 lines
208 B
Rust
9 lines
208 B
Rust
use validator::ValidationError;
|
|
|
|
pub fn required_not_empty_str(s: &str) -> Result<(), ValidationError> {
|
|
if s.is_empty() {
|
|
return Err(ValidationError::new("should not be empty string"));
|
|
}
|
|
Ok(())
|
|
}
|