(label: &str)
| 768 | } |
| 769 | |
| 770 | fn is_dns_label(label: &str) -> bool { |
| 771 | if label.is_empty() || label.len() > 63 || label.starts_with('-') || label.ends_with('-') { |
| 772 | return false; |
| 773 | } |
| 774 | label |
| 775 | .bytes() |
| 776 | .all(|byte| byte.is_ascii_lowercase() || byte.is_ascii_digit() || byte == b'-') |
| 777 | } |
| 778 | |
| 779 | fn default_log_level() -> String { |
| 780 | "info".to_string() |
no test coverage detected