fix(cell-path): incorrect serialization of empty cell-paths

can round trip `$. | to nuon | from nuon`
This commit is contained in:
Bahex 2025-05-04 10:38:00 +03:00
parent e48ad0d531
commit d411a1e9e6

View File

@ -250,6 +250,10 @@ impl Display for CellPath {
}
}
}
// Empty cell-paths are `$.` not `$`
if self.members.is_empty() {
write!(f, ".")?;
}
Ok(())
}
}