Fix lint issues#174
Fix lint issues#174leynos merged 1 commit intocodex/apply-lazy_regex-to-regex-statics-and-fix-typofrom
Conversation
Reviewer's GuideThis PR cleans up lint issues by reorganizing module declarations, stripping out unused code (the tokenize module and line-wrapping helpers), and enforcing block-style formatting for short functions. Class diagram for removed PrefixHandler struct and helpers in wrap.rsclassDiagram
class PrefixHandler {
+&'static std::sync::LazyLock<Regex> re
+bool is_bq
+fn(&Captures) build_prefix
+usize rest_group
+build_bullet_prefix(Captures) String
+build_footnote_prefix(Captures) String
+build_blockquote_prefix(Captures) String
}
PrefixHandler --|> HANDLERS : used in
Class diagram for removed tokenize moduleclassDiagram
class tokenize {
<<module>>
%% All contents removed
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
28908d7
into
codex/apply-lazy_regex-to-regex-statics-and-fix-typo
* Fix instructions typo and simplify wrap prefixes * Refactor tokenization and prefix handling * Remove unused tokenizer and tidy wrap helpers (#174) * Formatting for rust-fmt * Reformat per clippy --------- Co-authored-by: Payton McIntosh <pmcintosh@df12.net>
Summary
lib.rsand remove unusedtokenizewrapTesting
make lintmake testhttps://chatgpt.com/codex/tasks/task_e_688d4a8afaac832283ea896487509b6c
Summary by Sourcery
Fix lint issues by cleaning up unused code (tokenize module and prefix logic), reordering modules, and applying consistent formatting to short functions
Enhancements: