refactor: swap &Vec[T] with &[T] where appropriate

This commit is contained in:
Amaan Qureshi 2024-02-07 02:50:18 -05:00
parent d14d898f11
commit 59be1edaa1
No known key found for this signature in database
GPG key ID: E67890ADC4227273
10 changed files with 17 additions and 23 deletions

View file

@ -399,7 +399,7 @@ fn test_feature_corpus_files() {
}
fn check_consistent_sizes(tree: &Tree, input: &[u8]) {
fn check(node: Node, line_offsets: &Vec<usize>) {
fn check(node: Node, line_offsets: &[usize]) {
let start_byte = node.start_byte();
let end_byte = node.end_byte();
let start_point = node.start_position();