diff --git a/src/protocol.rs b/src/protocol.rs index fd5f7b1..0f606f6 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -256,7 +256,7 @@ impl LabeledSpan { /// ) /// ``` pub fn at_offset(offset: ByteOffset, label: impl Into) -> Self { - Self::new(Some(label.into()), offset.into(), 0) + Self::new(Some(label.into()), offset, 0) } /// Makes a new label without text, that underlines a specific span.