diff --git a/src/shell/workspace.rs b/src/shell/workspace.rs index 31682bf4..37cda1b5 100644 --- a/src/shell/workspace.rs +++ b/src/shell/workspace.rs @@ -436,9 +436,9 @@ impl Workspace { } pub fn to_pinned(&self) -> Option { - debug_assert!(self.id.is_some()); let output = self.explicit_output().clone(); if self.pinned { + debug_assert!(self.id.is_some()); Some(PinnedWorkspace { output: cosmic_comp_config::workspace::OutputMatch { name: output.name,