BlueGit

ict rusty-teams

chore(settings): cargo fmt the CalDAV settings files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-17 · 2 weeks ago

Hash
eba98f924f7ef5087d424594740c6f32afc4039b
Parent
a4006387
4 files changed +9 −19
crates/app/src/settings/caldav_form.rs +1 −5
@@ -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 )
crates/app/src/settings/calendar.rs +1 −3
@@ -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) -> D
317 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(
crates/app/src/settings/dialog.rs +4 −7
@@ -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 => self
226 SettingsSection::Devices => self
230 .devices
227 .devices
231 .clone()
228 .clone()
crates/app/src/settings/nav.rs +3 −4
@@ -91,10 +91,9 @@ fn search_terms(section: SettingsSection) -> Vec<String> {
91 91 ],
92 92 SettingsSection::Calls => vec![tr("settings.calls.ringtones")],
93 93 SettingsSection::Calendar => CALENDAR_VIEW_TERMS.iter().map(|key| tr(key)).collect(),
94 SettingsSection::CalendarAccounts => CALENDAR_ACCOUNTS_TERMS
95 .iter()
96 .map(|key| tr(key))
97 .collect(),
94 SettingsSection::CalendarAccounts => {
95 CALENDAR_ACCOUNTS_TERMS.iter().map(|key| tr(key)).collect()
96 }
98 97 SettingsSection::Devices => vec![
99 98 "Speaker".to_owned(),
100 99 "Microphone".to_owned(),
@@ -91,10 +91,9 @@ fn search_terms(section: SettingsSection) -> Vec<String> {
91 ],
91 ],
92 SettingsSection::Calls => vec![tr("settings.calls.ringtones")],
92 SettingsSection::Calls => vec![tr("settings.calls.ringtones")],
93 SettingsSection::Calendar => CALENDAR_VIEW_TERMS.iter().map(|key| tr(key)).collect(),
93 SettingsSection::Calendar => CALENDAR_VIEW_TERMS.iter().map(|key| tr(key)).collect(),
94 SettingsSection::CalendarAccounts => CALENDAR_ACCOUNTS_TERMS
94 SettingsSection::CalendarAccounts => {
95 .iter()
95 CALENDAR_ACCOUNTS_TERMS.iter().map(|key| tr(key)).collect()
96 .map(|key| tr(key))
96 }
97 .collect(),
98 SettingsSection::Devices => vec![
97 SettingsSection::Devices => vec![
99 "Speaker".to_owned(),
98 "Speaker".to_owned(),
100 "Microphone".to_owned(),
99 "Microphone".to_owned(),