Minor linting tweaks
This commit is contained in:
parent
6b739d93c2
commit
a997f538c3
3 changed files with 3 additions and 1 deletions
|
|
@ -1,2 +1,3 @@
|
||||||
allow-unwrap-in-tests = true
|
allow-unwrap-in-tests = true
|
||||||
allow-expect-in-tests = true
|
allow-expect-in-tests = true
|
||||||
|
single-char-binding-names-threshold = 2
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,7 @@ ref_option_ref = "warn"
|
||||||
return_self_not_must_use = "warn"
|
return_self_not_must_use = "warn"
|
||||||
same_functions_in_if_condition = "warn"
|
same_functions_in_if_condition = "warn"
|
||||||
semicolon_if_nothing_returned = "warn"
|
semicolon_if_nothing_returned = "warn"
|
||||||
|
set_contains_or_insert = "warn"
|
||||||
should_panic_without_expect = "warn"
|
should_panic_without_expect = "warn"
|
||||||
similar_names = "warn"
|
similar_names = "warn"
|
||||||
str_split_at_newline = "warn"
|
str_split_at_newline = "warn"
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn wrap_newline() {
|
fn wrap_newline() {
|
||||||
assert_eq!(wrap("\n"), String::from(r"↳"));
|
assert_eq!(wrap("\n"), String::from("↳"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue