From ff57dd78fca5046c03f69438042878a6869e2f02 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 08:12:54 +0000 Subject: [PATCH] Remove unnecessary allow(dead_code) in lexer Removed `#[allow(dead_code)]` from `LogosToken` enum in `compiler/lexer/src/lib.rs` since the tokens are fully generated by `logos-derive` and matched in `Lexer::map_logos_token`, so they are not actually dead code. Also fixed the resulting empty line to avoid `clippy::empty_line_after_outer_attr` warnings. Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- compiler/lexer/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/lexer/src/lib.rs b/compiler/lexer/src/lib.rs index c59e1798..034560cf 100644 --- a/compiler/lexer/src/lib.rs +++ b/compiler/lexer/src/lib.rs @@ -12,7 +12,6 @@ use techscript_syntax::{lookup_keyword, Token, TokenKind}; /// Private token enumeration used internally by Logos for scanning. #[derive(Logos, Debug, Clone, Copy, PartialEq, Eq)] #[logos(skip r"[ \t\r]+")] // Skip spaces, tabs, and carriage returns -#[allow(dead_code)] enum LogosToken { #[token("\n")] #[token("\r\n")]