Cleanup the warnings

This commit is contained in:
Kirill Bulatov
2023-06-29 22:25:49 +03:00
parent 76d35b7122
commit e217a95fcc
4 changed files with 26 additions and 37 deletions
@@ -1169,6 +1169,7 @@ impl FoldOffset {
FoldPoint(cursor.start().1.output.lines + overshoot)
}
#[cfg(test)]
pub fn to_inlay_offset(self, snapshot: &FoldSnapshot) -> InlayOffset {
let mut cursor = snapshot.transforms.cursor::<(FoldOffset, InlayOffset)>();
cursor.seek(&self, Bias::Right, &());