diff --git a/backend/Cargo.toml b/backend/Cargo.toml index a5812fc6..9f583425 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -59,18 +59,19 @@ unused_self = "warn" verbose_file_reads = "warn" large_stack_arrays = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/13774 + +# TODO: fix these cast_possible_truncation = { level = "allow", priority = 1 } -doc_link_with_quotes = { level = "allow", priority = 1 } cast_sign_loss = { level = "allow", priority = 1 } cast_possible_wrap = { level = "allow", priority = 1 } -struct_field_names = { level = "allow", priority = 1 } -single_call_fn = { level = "allow", priority = 1 } -absolute_paths = { level = "allow", priority = 1 } -arithmetic_side_effects = { level = "allow", priority = 1 } -similar_names = { level = "allow", priority = 1 } -self_named_module_files = { level = "allow", priority = 1 } -single_char_lifetime_names = { level = "allow", priority = 1 } -missing_docs_in_private_items = { level = "allow", priority = 1 } -question_mark_used = { level = "allow", priority = 1 } + +# Silly lints implicit_return = { level = "allow", priority = 1 } +question_mark_used = { level = "allow", priority = 1 } +struct_field_names = { level = "allow", priority = 1 } +single_char_lifetime_names = { level = "allow", priority = 1 } +single_call_fn = { level = "allow", priority = 1 } +similar_names = { level = "allow", priority = 1 } +missing_docs_in_private_items = { level = "allow", priority = 1 } + pedantic = { level = "warn", priority = 0 } diff --git a/backend/reconcile/src/tokenizer/word_tokenizer.rs b/backend/reconcile/src/tokenizer/word_tokenizer.rs index dd22b7ea..2267f69f 100644 --- a/backend/reconcile/src/tokenizer/word_tokenizer.rs +++ b/backend/reconcile/src/tokenizer/word_tokenizer.rs @@ -5,7 +5,9 @@ use super::token::Token; /// /// ## Example /// -/// "Hi there!" -> ["Hi", " " ", "there!"] +/// ```not_rust +/// "Hi there!" -> ["Hi", " ", "there!"] +/// ``` pub fn word_tokenizer(text: &str) -> Vec> { let mut result: Vec> = Vec::new();