(input: &str)
| 1059 | |
| 1060 | #[must_use] |
| 1061 | pub fn normalize_profile_id(input: &str) -> Option<String> { |
| 1062 | let id = input.trim().to_ascii_lowercase(); |
| 1063 | if is_valid_profile_id(&id) { |
| 1064 | Some(id) |
| 1065 | } else { |
| 1066 | None |
| 1067 | } |
| 1068 | } |
| 1069 | |
| 1070 | fn is_valid_profile_id(id: &str) -> bool { |
| 1071 | !id.is_empty() |
no test coverage detected