fix: debug build pinning panic
This commit is contained in:
parent
31f317d16b
commit
52b3f930a8
1 changed files with 1 additions and 1 deletions
|
|
@ -436,9 +436,9 @@ impl Workspace {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn to_pinned(&self) -> Option<PinnedWorkspace> {
|
pub fn to_pinned(&self) -> Option<PinnedWorkspace> {
|
||||||
debug_assert!(self.id.is_some());
|
|
||||||
let output = self.explicit_output().clone();
|
let output = self.explicit_output().clone();
|
||||||
if self.pinned {
|
if self.pinned {
|
||||||
|
debug_assert!(self.id.is_some());
|
||||||
Some(PinnedWorkspace {
|
Some(PinnedWorkspace {
|
||||||
output: cosmic_comp_config::workspace::OutputMatch {
|
output: cosmic_comp_config::workspace::OutputMatch {
|
||||||
name: output.name,
|
name: output.name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue