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/layout/workspace.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout') diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index da1be408..26d6a785 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -123,7 +123,7 @@ pub struct OutputId(String); static WORKSPACE_ID_COUNTER: IdCounter = IdCounter::new(); #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] -pub struct WorkspaceId(u32); +pub struct WorkspaceId(u64); impl WorkspaceId { fn next() -> WorkspaceId { @@ -131,7 +131,7 @@ impl WorkspaceId { } pub fn get(self) -> u64 { - u64::from(self.0) + self.0 } } -- cgit