mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Workaround for rust-lang/rustfmt#3615
This commit is contained in:
parent
86bab94631
commit
41a4ce52dd
2 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ fn test_redundant_closure_with_another_closure() {
|
|||
let a = Some(1u8).map(closure);
|
||||
}
|
||||
|
||||
fn make_lazy(f: fn() -> fn(u8) -> u8) -> impl Fn(u8) -> u8 {
|
||||
fn make_lazy(f: impl Fn() -> fn(u8) -> u8) -> impl Fn(u8) -> u8 {
|
||||
// Currently f is called when result of make_lazy is called.
|
||||
// If the closure is removed, f will be called when make_lazy itself is
|
||||
// called. This changes semantics, so the closure must stay.
|
||||
|
|
|
@ -178,7 +178,7 @@ fn test_redundant_closure_with_another_closure() {
|
|||
let a = Some(1u8).map(|a| closure(a));
|
||||
}
|
||||
|
||||
fn make_lazy(f: fn() -> fn(u8) -> u8) -> impl Fn(u8) -> u8 {
|
||||
fn make_lazy(f: impl Fn() -> fn(u8) -> u8) -> impl Fn(u8) -> u8 {
|
||||
// Currently f is called when result of make_lazy is called.
|
||||
// If the closure is removed, f will be called when make_lazy itself is
|
||||
// called. This changes semantics, so the closure must stay.
|
||||
|
|
Loading…
Reference in a new issue