Helper: format a count with auto-pluralization (singular + "s").
(count: usize, singular: &str)
| 170 | |
| 171 | /// Helper: format a count with auto-pluralization (singular + "s"). |
| 172 | fn format_count(count: usize, singular: &str) -> String { |
| 173 | if count == 1 { |
| 174 | format!("1 {}", singular) |
| 175 | } else { |
| 176 | format!("{} {}s", count, singular) |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | #[test] |
| 181 | fn test_push_reexported() { |
nothing calls this directly
no outgoing calls
no test coverage detected