Run cargo fmt

fix_python_re_indent
Wilfred Hughes 2025-03-06 23:03:40 +07:00
parent 8953c55cf8
commit ca9b7da43f
3 changed files with 24 additions and 4 deletions

@ -714,7 +714,12 @@ mod tests {
start_col: 1, start_col: 1,
end_col: 2, end_col: 2,
}]; }];
let rhs = [Syntax::new_atom(&arena, pos, "a".to_owned(), AtomKind::Comment)]; let rhs = [Syntax::new_atom(
&arena,
pos,
"a".to_owned(),
AtomKind::Comment,
)];
init_all_info(&lhs, &rhs); init_all_info(&lhs, &rhs);
@ -763,7 +768,12 @@ mod tests {
start_col: 1, start_col: 1,
end_col: 2, end_col: 2,
}]; }];
let rhs = [Syntax::new_atom(&arena, pos, "a".to_owned(), AtomKind::Comment)]; let rhs = [Syntax::new_atom(
&arena,
pos,
"a".to_owned(),
AtomKind::Comment,
)];
init_all_info(&lhs, &rhs); init_all_info(&lhs, &rhs);

@ -1211,7 +1211,12 @@ mod tests {
let arena = Arena::new(); let arena = Arena::new();
let x = Syntax::new_atom(&arena, pos.clone(), "foo\nbar".to_owned(), AtomKind::Comment); let x = Syntax::new_atom(
&arena,
pos.clone(),
"foo\nbar".to_owned(),
AtomKind::Comment,
);
let y = Syntax::new_atom(&arena, pos, "foo\n bar".to_owned(), AtomKind::Comment); let y = Syntax::new_atom(&arena, pos, "foo\n bar".to_owned(), AtomKind::Comment);
init_all_info(&[x], &[y]); init_all_info(&[x], &[y]);

@ -1796,7 +1796,12 @@ fn atom_from_cursor<'a>(
AtomKind::Normal AtomKind::Normal
}; };
Some(Syntax::new_atom(arena, position, content.to_owned(), highlight)) Some(Syntax::new_atom(
arena,
position,
content.to_owned(),
highlight,
))
} }
#[cfg(test)] #[cfg(test)]