From 4277bc17c6f5040207b9ec00708bdfb994c916cf Mon Sep 17 00:00:00 2001 From: yoriswind Date: Wed, 2 Dec 2026 10:02:45 -0800 Subject: [PATCH] Match rustfmt in German smart quote style detection --- crates/ui-egui/src/tools/type_tool/controls.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/ui-egui/src/tools/type_tool/controls.rs b/crates/ui-egui/src/tools/type_tool/controls.rs index 71cb9215080..363f0bf70e5 100644 --- a/crates/ui-egui/src/tools/type_tool/controls.rs +++ b/crates/ui-egui/src/tools/type_tool/controls.rs @@ -194,11 +194,7 @@ fn editor_rect(app: &mut PhotocraftApp, view: &craft::behavior::CanvasView, id: /// Use the language shown for the edit's caret or selection. Other languages keep the English marks. fn smart_quote_style(app: &PhotocraftApp) -> QuoteStyle { let german = super::styles_at(app).is_some_and(|(style, _)| { - style - .language - .as_deref() - .and_then(|tag| tag.split(['-', '_']).next()) - .is_some_and(|language| language.eq_ignore_ascii_case("de")) + style.language.as_deref().and_then(|tag| tag.split(['-', '_']).next()).is_some_and(|language| language.eq_ignore_ascii_case("de")) }); if german { QuoteStyle { apostrophe: QuoteStyle::GERMAN.single.1, ..QuoteStyle::GERMAN } } else { QuoteStyle::ENGLISH } }