]> git.lizzy.rs Git - rust.git/commit
Use a macro to not have to copy-paste `ConstFnMutClosure::new(&mut fold, NeverShortCi...
authorScott McMurray <scottmcm@users.noreply.github.com>
Mon, 26 Sep 2022 07:51:42 +0000 (00:51 -0700)
committerScott McMurray <scottmcm@users.noreply.github.com>
Mon, 26 Sep 2022 18:38:18 +0000 (11:38 -0700)
commit55492de54557c3308795282bd96c8120ad66b62e
tree3a308f771ff9061c6600bbdd4fb90aa2936a9fbf
parentfe217c28ffc6955f0927d8e8715d43d727debe5a
Use a macro to not have to copy-paste `ConstFnMutClosure::new(&mut fold, NeverShortCircuit::wrap_mut_2_imp)).0` everywhere

Also use that macro to replace a bunch of places that had custom closure-wrappers.
library/core/src/iter/adapters/array_chunks.rs
library/core/src/iter/adapters/map_while.rs
library/core/src/iter/adapters/mod.rs
library/core/src/iter/adapters/scan.rs
library/core/src/iter/adapters/skip.rs
library/core/src/iter/adapters/take.rs
library/core/src/iter/adapters/take_while.rs
library/core/src/iter/mod.rs
library/core/src/iter/range.rs