()
| 17 | |
| 18 | impl Default for SingletonHandle { |
| 19 | fn default() -> Self { |
| 20 | static NEXT_SLOT: OnceLock<AtomicUsize> = OnceLock::new(); |
| 21 | |
| 22 | Self { |
| 23 | slot: NEXT_SLOT |
| 24 | .get_or_init(AtomicUsize::default) |
| 25 | .fetch_add(1, Ordering::SeqCst), |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | #[derive(Default)] |
nothing calls this directly
no test coverage detected