Skip to content

Commit 94c9495

Browse files
committed
clippy
1 parent 91169fc commit 94c9495

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

crates/isograph_lsp/src/semantic_tokens.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn get_semantic_tokens(
5656

5757
// Track how many characters we've processed in the entire file.
5858
// This accumulates across all isograph literals to maintain proper positioning.
59-
let mut processed_until = 0 as usize;
59+
let mut processed_until = 0_usize;
6060

6161
let lsp_semantic_tokens = parsed_iso_literals
6262
.iter()
@@ -149,16 +149,18 @@ fn convert_isograph_semantic_token_to_lsp_semantic_token(
149149
token_type: isograph_semantic_token.item.0,
150150
token_modifiers_bitset: 0,
151151
};
152+
if isograph_semantic_token.item.0 == 17 {
153+
eprintln!("GOT IT {:#?}", token);
154+
}
152155
token
153156
}
154157

155158
fn get_isograph_semantic_tokens(
156159
result: &IsoLiteralExtractionResult,
157160
) -> &Vec<WithSpan<IsographSemanticToken>> {
158-
let semantic_tokens = match result {
161+
(match result {
159162
IsoLiteralExtractionResult::ClientPointerDeclaration(s) => &s.item.semantic_tokens,
160163
IsoLiteralExtractionResult::ClientFieldDeclaration(s) => &s.item.semantic_tokens,
161164
IsoLiteralExtractionResult::EntrypointDeclaration(s) => &s.item.semantic_tokens,
162-
};
163-
semantic_tokens
165+
}) as _
164166
}

0 commit comments

Comments
 (0)