We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b0cb35 commit 96a8c0dCopy full SHA for 96a8c0d
src/config.rs
@@ -163,26 +163,6 @@ impl IdentFormat {
163
self.suffix = suffix.into();
164
self
165
}
166
- pub fn parse(s: &str) -> Result<Self, ()> {
167
- let mut it = s.split(":");
168
- match (it.next(), it.next(), it.next(), it.next()) {
169
- (Some(prefix), Some(case), Some(suffix), None) => {
170
- let case = match case {
171
- "C" | "CONSTANT" => Some(Case::Constant),
172
- "P" | "Pascal" => Some(Case::Pascal),
173
- "S" | "snake" => Some(Case::Snake),
174
- "_" => None,
175
- _ => return Err(()),
176
- };
177
- Ok(Self {
178
- case,
179
- prefix: prefix.into(),
180
- suffix: suffix.into(),
181
- })
182
- }
183
- _ => Err(()),
184
185
186
187
188
#[derive(Clone, Debug, PartialEq, Eq)]
0 commit comments