This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
src/tools/clippy/tests/ui Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ help: replace the `Into` implementation with `From<ExplicitPaths>`
5454LL ~ impl core::convert::From<crate::ExplicitPaths> for bool {
5555LL ~ fn from(mut val: crate::ExplicitPaths) -> Self {
5656LL ~ let in_closure = || val.0;
57- LL |
57+ LL |
5858LL ~ val.0 = false;
5959LL ~ val.0
6060 |
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ LL | result
7171help: return the expression directly
7272 |
7373LL ~
74- LL |
74+ LL |
7575LL ~ (match self {
7676LL + E::A(x) => x,
7777LL + E::B(x) => x,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ LL ~ if let Some(<stripped>) = s.strip_prefix("ab") {
1717LL ~ str::to_string(<stripped>);
1818LL |
1919LL ~ <stripped>.to_string();
20- LL |
20+ LL |
2121LL ~ str::to_string(<stripped>);
2222LL ~ <stripped>.to_string();
2323 |
@@ -39,7 +39,7 @@ LL ~ if let Some(<stripped>) = s.strip_suffix("bc") {
3939LL ~ str::to_string(<stripped>);
4040LL |
4141LL ~ <stripped>.to_string();
42- LL |
42+ LL |
4343LL ~ str::to_string(<stripped>);
4444LL ~ <stripped>.to_string();
4545 |
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ LL | || do_nothing(value)
2727LL | || });
2828 | ||______^- help: try: `if let Ok(value) = x.field { ... }`
2929 | |______|
30- |
30+ |
3131
3232error: called `map(f)` on an `Result` value where `f` is a closure that returns the unit type `()`
3333 --> tests/ui/result_map_unit_fn_unfixable.rs:37:5
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ LL | | ///! b
8585help: use an inner doc comment to document the parent module or crate
8686 |
8787LL ~ //! a
88- LL |
88+ LL |
8989LL ~ //! b
9090 |
9191
You can’t perform that action at this time.
0 commit comments