Add a new() method for easier creation
()
| 16 | impl Counters { |
| 17 | // Add a new() method for easier creation |
| 18 | pub fn new() -> Self { |
| 19 | Self { |
| 20 | requests: AtomicUsize::new(0), |
| 21 | success: AtomicUsize::new(0), |
| 22 | errors: AtomicUsize::new(0), |
| 23 | ratelimits: AtomicUsize::new(0), |
| 24 | hits: AtomicUsize::new(0) |
| 25 | } |
| 26 | } |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected