From d5b800200ab19b8dbb52535f459899e06885d66b Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 10 Aug 2026 16:54:46 +0800 Subject: feat(parselib): remove invalid naming case variants Remove `Title`, `Lower`, and `Upper` variants from `ParserStyleNamingCase` as they are not valid naming conventions. --- arg_picker/src/parselib/style.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'arg_picker') diff --git a/arg_picker/src/parselib/style.rs b/arg_picker/src/parselib/style.rs index 81dfe72..9f7b38f 100644 --- a/arg_picker/src/parselib/style.rs +++ b/arg_picker/src/parselib/style.rs @@ -150,18 +150,6 @@ pub enum ParserStyleNamingCase { /// /// Example: `brew.coffee` Dot, - /// `Title Case` format: words are separated by spaces, each word capitalized. - /// - /// Example: `Brew Coffee` - Title, - /// `lower case` format: words are separated by spaces, all lowercase. - /// - /// Example: `brew coffee` - Lower, - /// `UPPER CASE` format: words are separated by spaces, all uppercase. - /// - /// Example: `BREW COFFEE` - Upper, } impl ParserStyleNamingCase { @@ -192,9 +180,6 @@ impl ParserStyleNamingCase { Self::Kebab => just_fmt::kebab_case!(s.into()).into(), Self::Snake => just_fmt::snake_case!(s.into()).into(), Self::Dot => just_fmt::dot_case!(s.into()).into(), - Self::Title => just_fmt::title_case!(s.into()).into(), - Self::Lower => just_fmt::lower_case!(s.into()).into(), - Self::Upper => just_fmt::upper_case!(s.into()).into(), } } } -- cgit