Run cargo fmt
This commit is contained in:
parent
abe13b5305
commit
9b34b2ac19
1 changed files with 4 additions and 3 deletions
|
|
@ -176,11 +176,12 @@ where
|
||||||
|
|
||||||
/// Returns the windows that need to be requested to closed, and also the windows that can be
|
/// Returns the windows that need to be requested to closed, and also the windows that can be
|
||||||
/// closed immediately.
|
/// 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(
|
self.exit_on_close_requested.iter().enumerate().fold(
|
||||||
(vec![], vec![]),
|
(vec![], vec![]),
|
||||||
|(mut close_immediately, mut needs_request_closed),
|
|(mut close_immediately, mut needs_request_closed), (i, close)| {
|
||||||
(i, close)| {
|
|
||||||
let id = self.ids[i];
|
let id = self.ids[i];
|
||||||
|
|
||||||
if *close {
|
if *close {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue