mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
Remove { and } from single-line closure
This commit is contained in:
parent
93ec73da29
commit
bf2ca57f55
1 changed files with 2 additions and 6 deletions
|
@ -4231,15 +4231,11 @@ impl Editor {
|
|||
}
|
||||
|
||||
pub fn reverse_lines(&mut self, _: &ReverseLines, cx: &mut ViewContext<Self>) {
|
||||
self.manipulate_lines(cx, |lines| {
|
||||
lines.reverse();
|
||||
})
|
||||
self.manipulate_lines(cx, |lines| lines.reverse())
|
||||
}
|
||||
|
||||
pub fn shuffle_lines(&mut self, _: &ShuffleLines, cx: &mut ViewContext<Self>) {
|
||||
self.manipulate_lines(cx, |lines| {
|
||||
lines.shuffle(&mut thread_rng());
|
||||
})
|
||||
self.manipulate_lines(cx, |lines| lines.shuffle(&mut thread_rng()))
|
||||
}
|
||||
|
||||
fn manipulate_lines<Fn>(&mut self, cx: &mut ViewContext<Self>, mut callback: Fn)
|
||||
|
|
Loading…
Reference in a new issue