Fix warning for test-only helper method

pull/70/head
Wilfred Hughes 2021-11-26 21:59:00 +07:00
parent d8ca54fc25
commit 0259aad5d1
1 changed files with 6 additions and 4 deletions

@ -246,10 +246,6 @@ impl<'a> Syntax<'a> {
self.info().num_ancestors.get()
}
pub fn change(&'a self) -> Option<ChangeKind<'a>> {
self.info().change.get()
}
pub fn first_line(&self) -> Option<LineNumber> {
let position = match self {
List { open_position, .. } => open_position,
@ -795,6 +791,12 @@ mod tests {
use super::*;
use pretty_assertions::assert_eq;
impl<'a> Syntax<'a> {
pub fn change(&'a self) -> Option<ChangeKind<'a>> {
self.info().change.get()
}
}
#[test]
fn test_comment_and_atom_differ() {
let pos = vec![SingleLineSpan {