Skip to content

Commit 2c472dd

Browse files
author
Paolo Tranquilli
committed
Tree-sitter: fix formatting
1 parent 4454566 commit 2c472dd

File tree

1 file changed

+2
-8
lines changed
  • shared/tree-sitter-extractor/src/extractor

1 file changed

+2
-8
lines changed

shared/tree-sitter-extractor/src/extractor/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,7 @@ pub fn populate_parent_folders(
127127
}
128128

129129
/** Get the label for the given location, defining it a global ID if it doesn't exist yet. */
130-
fn global_location(
131-
writer: &mut trap::Writer,
132-
location: trap::Location,
133-
) -> trap::Label {
130+
fn global_location(writer: &mut trap::Writer, location: trap::Location) -> trap::Label {
134131
let (loc_label, fresh) = writer.global_id(&format!(
135132
"loc,{{{}}},{},{},{},{}",
136133
location.file_label,
@@ -157,10 +154,7 @@ fn global_location(
157154

158155
/** Get the label for the given location, creating it as a fresh ID if we haven't seen the location
159156
* yet for this file. */
160-
fn location_label(
161-
writer: &mut trap::Writer,
162-
location: trap::Location,
163-
) -> trap::Label {
157+
fn location_label(writer: &mut trap::Writer, location: trap::Location) -> trap::Label {
164158
let (loc_label, fresh) = writer.location_label(location);
165159
if fresh {
166160
writer.add_tuple(

0 commit comments

Comments
 (0)