mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
clippy: bless tests
This commit is contained in:
parent
7d9f970d4e
commit
a8e0bcb336
5 changed files with 6 additions and 6 deletions
|
@ -54,7 +54,7 @@ help: replace the `Into` implementation with `From<ExplicitPaths>`
|
|||
LL ~ impl core::convert::From<crate::ExplicitPaths> for bool {
|
||||
LL ~ fn from(mut val: crate::ExplicitPaths) -> Self {
|
||||
LL ~ let in_closure = || val.0;
|
||||
LL |
|
||||
LL |
|
||||
LL ~ val.0 = false;
|
||||
LL ~ val.0
|
||||
|
|
||||
|
|
|
@ -71,7 +71,7 @@ LL | result
|
|||
help: return the expression directly
|
||||
|
|
||||
LL ~
|
||||
LL |
|
||||
LL |
|
||||
LL ~ (match self {
|
||||
LL + E::A(x) => x,
|
||||
LL + E::B(x) => x,
|
||||
|
|
|
@ -17,7 +17,7 @@ LL ~ if let Some(<stripped>) = s.strip_prefix("ab") {
|
|||
LL ~ str::to_string(<stripped>);
|
||||
LL |
|
||||
LL ~ <stripped>.to_string();
|
||||
LL |
|
||||
LL |
|
||||
LL ~ str::to_string(<stripped>);
|
||||
LL ~ <stripped>.to_string();
|
||||
|
|
||||
|
@ -39,7 +39,7 @@ LL ~ if let Some(<stripped>) = s.strip_suffix("bc") {
|
|||
LL ~ str::to_string(<stripped>);
|
||||
LL |
|
||||
LL ~ <stripped>.to_string();
|
||||
LL |
|
||||
LL |
|
||||
LL ~ str::to_string(<stripped>);
|
||||
LL ~ <stripped>.to_string();
|
||||
|
|
||||
|
|
|
@ -27,7 +27,7 @@ LL | || do_nothing(value)
|
|||
LL | || });
|
||||
| ||______^- help: try: `if let Ok(value) = x.field { ... }`
|
||||
| |______|
|
||||
|
|
||||
|
|
||||
|
||||
error: called `map(f)` on an `Result` value where `f` is a closure that returns the unit type `()`
|
||||
--> tests/ui/result_map_unit_fn_unfixable.rs:37:5
|
||||
|
|
|
@ -85,7 +85,7 @@ LL | | ///! b
|
|||
help: use an inner doc comment to document the parent module or crate
|
||||
|
|
||||
LL ~ //! a
|
||||
LL |
|
||||
LL |
|
||||
LL ~ //! b
|
||||
|
|
||||
|
||||
|
|
Loading…
Reference in a new issue