summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-29 22:33:41 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-29 22:33:41 +0100
commit9b34b2ac19a8fdd424581d160bc702e096a2b46a (patch)
tree12ec3cd0a74c97dec4800fbb010dbc495027ebe2 /winit
parentabe13b530514c8ce63a0ef90172082258e35a43d (diff)
downloadiced-9b34b2ac19a8fdd424581d160bc702e096a2b46a.tar.gz
iced-9b34b2ac19a8fdd424581d160bc702e096a2b46a.tar.bz2
iced-9b34b2ac19a8fdd424581d160bc702e096a2b46a.zip
Run `cargo fmt`
Diffstat (limited to 'winit')
-rw-r--r--winit/src/multi_window/windows.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/winit/src/multi_window/windows.rs b/winit/src/multi_window/windows.rs
index 1f606b31..6846abb3 100644
--- a/winit/src/multi_window/windows.rs
+++ b/winit/src/multi_window/windows.rs
@@ -176,11 +176,12 @@ where
/// Returns the windows that need to be requested to closed, and also the windows that can be
/// closed immediately.
- pub fn partition_close_requests(&self) -> (Vec<window::Id>, Vec<window::Id>) {
+ pub fn partition_close_requests(
+ &self,
+ ) -> (Vec<window::Id>, Vec<window::Id>) {
self.exit_on_close_requested.iter().enumerate().fold(
(vec![], vec![]),
- |(mut close_immediately, mut needs_request_closed),
- (i, close)| {
+ |(mut close_immediately, mut needs_request_closed), (i, close)| {
let id = self.ids[i];
if *close {