clippy
This commit is contained in:
parent
36f41ac473
commit
245d58fd4f
4
build.rs
4
build.rs
@ -53,9 +53,9 @@ fn generate_hashmap() {
|
||||
.unwrap();
|
||||
writeln!(&mut file, ";").unwrap();
|
||||
|
||||
write!(
|
||||
writeln!(
|
||||
&mut file,
|
||||
"const MAX_COMPLETION_LEN: usize = {};\n",
|
||||
"const MAX_COMPLETION_LEN: usize = {};",
|
||||
max_len
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
@ -101,9 +101,9 @@ pub fn process_func_str(function_in: &str) -> String {
|
||||
' '
|
||||
};
|
||||
|
||||
let c_is_number = NUMBERS.contains(&c);
|
||||
let c_is_letter = LETTERS.contains(&c);
|
||||
let c_is_variable = VALID_VARIABLES.contains(&c);
|
||||
let c_is_number = NUMBERS.contains(c);
|
||||
let c_is_letter = LETTERS.contains(c);
|
||||
let c_is_variable = VALID_VARIABLES.contains(c);
|
||||
let prev_char_is_variable = VALID_VARIABLES.contains(&prev_char);
|
||||
let prev_char_is_number = NUMBERS.contains(&prev_char);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user