Create a result with pre-allocated capacity.
(capacity: usize)
| 237 | |
| 238 | /// Create a result with pre-allocated capacity. |
| 239 | pub fn with_capacity(capacity: usize) -> Self { |
| 240 | Self { |
| 241 | files: Vec::with_capacity(capacity), |
| 242 | errors: Vec::new(), |
| 243 | skipped: 0, |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | /// Add a successfully collected file. |
| 248 | pub fn add(&mut self, file: T) { |
nothing calls this directly
no outgoing calls
no test coverage detected