chore(settings): cargo fmt the CalDAV settings files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -71,11 +71,7 @@ impl Render for CalDavForm {
71
71
)
72
72
.on_click(move |_, window, cx| {
73
73
set_fastmail.update(cx, |input, cx| {
74
input.set_value(
75
"https://caldav.fastmail.com/dav/",
76
window,
77
cx,
78
);
74
input.set_value("https://caldav.fastmail.com/dav/", window, cx);
79
75
});
80
76
}),
81
77
)
@@ -71,11 +71,7 @@ impl Render for CalDavForm {71
)71
)72
.on_click(move |_, window, cx| {72
.on_click(move |_, window, cx| {73
set_fastmail.update(cx, |input, cx| {73
set_fastmail.update(cx, |input, cx| {74
input.set_value(74
input.set_value("https://caldav.fastmail.com/dav/", window, cx);75
"https://caldav.fastmail.com/dav/",76
window,77
cx,78
);79
});75
});80
}),76
}),81
)77
)@@ -317,9 +317,7 @@ fn ics_block(app: &Entity<AppState>, subscription: &store::IcsSubscription) -> D
317
317
tr("settings.calendar.disconnect"),
318
318
)
319
319
.on_click(move |_, _, cx| {
320
disconnect.update(cx, |state, cx| {
321
state.disconnect_ics_subscription(&id, cx)
322
})
320
disconnect.update(cx, |state, cx| state.disconnect_ics_subscription(&id, cx))
323
321
}),
324
322
))
325
323
.child(
@@ -317,9 +317,7 @@ fn ics_block(app: &Entity<AppState>, subscription: &store::IcsSubscription) -> D317
tr("settings.calendar.disconnect"),317
tr("settings.calendar.disconnect"),318
)318
)319
.on_click(move |_, _, cx| {319
.on_click(move |_, _, cx| {320
disconnect.update(cx, |state, cx| {320
disconnect.update(cx, |state, cx| state.disconnect_ics_subscription(&id, cx))321
state.disconnect_ics_subscription(&id, cx)322
})323
}),321
}),324
))322
))325
.child(323
.child(@@ -219,13 +219,10 @@ impl SettingsDialog {
219
219
SettingsSection::Chats => chats::render(&self.app, cx).into_any_element(),
220
220
SettingsSection::Calls => calls::render(&self.center, cx).into_any_element(),
221
221
SettingsSection::Calendar => calendar::render_view(&self.app, cx).into_any_element(),
222
SettingsSection::CalendarAccounts => calendar::render_accounts(
223
&self.app,
224
self.caldav.as_ref(),
225
self.ics.as_ref(),
226
cx,
227
)
228
.into_any_element(),
222
SettingsSection::CalendarAccounts => {
223
calendar::render_accounts(&self.app, self.caldav.as_ref(), self.ics.as_ref(), cx)
224
.into_any_element()
225
}
229
226
SettingsSection::Devices => self
230
227
.devices
231
228
.clone()
@@ -219,13 +219,10 @@ impl SettingsDialog {219
SettingsSection::Chats => chats::render(&self.app, cx).into_any_element(),219
SettingsSection::Chats => chats::render(&self.app, cx).into_any_element(),220
SettingsSection::Calls => calls::render(&self.center, cx).into_any_element(),220
SettingsSection::Calls => calls::render(&self.center, cx).into_any_element(),221
SettingsSection::Calendar => calendar::render_view(&self.app, cx).into_any_element(),221
SettingsSection::Calendar => calendar::render_view(&self.app, cx).into_any_element(),222
SettingsSection::CalendarAccounts => calendar::render_accounts(222
SettingsSection::CalendarAccounts => {223
&self.app,223
calendar::render_accounts(&self.app, self.caldav.as_ref(), self.ics.as_ref(), cx)224
self.caldav.as_ref(),224
.into_any_element()225
self.ics.as_ref(),225
}226
cx,227
)228
.into_any_element(),229
SettingsSection::Devices => self226
SettingsSection::Devices => self230
.devices227
.devices231
.clone()228
.clone()