From b7901579d586b6c68119ef65bc184a7369492791 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 31 Aug 2024 10:29:06 +0300 Subject: Change IdCounter to be backed by an AtomicU64 Let's see if anyone complains. --- src/backend/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend') diff --git a/src/backend/mod.rs b/src/backend/mod.rs index 40edef32..bbacf1cf 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -37,7 +37,7 @@ pub type IpcOutputMap = HashMap; static OUTPUT_ID_COUNTER: IdCounter = IdCounter::new(); #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] -pub struct OutputId(u32); +pub struct OutputId(u64); impl OutputId { fn next() -> OutputId { @@ -45,7 +45,7 @@ impl OutputId { } pub fn get(self) -> u64 { - u64::from(self.0) + self.0 } } -- cgit