Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion starlark_lsp/src/definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ pub(crate) mod helpers {

let mut fixture_idx = 0;
for matches in re.captures_iter(fixture) {
let full_tag = matches.get(0).unwrap();
let full_tag = matches.get_match();
let is_end_tag = matches.get(1).is_some();
let identifier = matches.get(2).unwrap().as_str().to_owned();

Expand Down
5 changes: 1 addition & 4 deletions starlark_lsp/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,7 @@ impl LspContext for TestServerContext {
let start_pos = cap.get(1).unwrap().as_str().parse().unwrap();
let end_pos = cap.get(2).unwrap().as_str().parse().unwrap();
let span = Span::new(Pos::new(start_pos), Pos::new(end_pos));
(
literal[0..cap.get(0).unwrap().start()].to_owned(),
Some(span),
)
(literal[0..cap.get_match().start()].to_owned(), Some(span))
}
None => (literal.to_owned(), None),
};
Expand Down