Enable more lints
This commit is contained in:
parent
48f301d8ab
commit
aa78e258e7
2 changed files with 14 additions and 11 deletions
|
|
@ -59,18 +59,19 @@ unused_self = "warn"
|
||||||
verbose_file_reads = "warn"
|
verbose_file_reads = "warn"
|
||||||
|
|
||||||
large_stack_arrays = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/13774
|
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 }
|
cast_possible_truncation = { level = "allow", priority = 1 }
|
||||||
doc_link_with_quotes = { level = "allow", priority = 1 }
|
|
||||||
cast_sign_loss = { level = "allow", priority = 1 }
|
cast_sign_loss = { level = "allow", priority = 1 }
|
||||||
cast_possible_wrap = { 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 }
|
# Silly lints
|
||||||
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 }
|
|
||||||
implicit_return = { level = "allow", priority = 1 }
|
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 }
|
pedantic = { level = "warn", priority = 0 }
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ use super::token::Token;
|
||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
///
|
///
|
||||||
/// "Hi there!" -> ["Hi", " " ", "there!"]
|
/// ```not_rust
|
||||||
|
/// "Hi there!" -> ["Hi", " ", "there!"]
|
||||||
|
/// ```
|
||||||
pub fn word_tokenizer(text: &str) -> Vec<Token<String>> {
|
pub fn word_tokenizer(text: &str) -> Vec<Token<String>> {
|
||||||
let mut result: Vec<Token<String>> = Vec::new();
|
let mut result: Vec<Token<String>> = Vec::new();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue