Skip to content

Commit 6a134ab

Browse files
committed
Rename minimal to keep and simplify
1 parent 056266e commit 6a134ab

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

vhdl_lang/src/config/case.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub fn all_same_case_category_to_case_map(case: Case) -> CategoryToCaseMap {
171171
pub enum Preset {
172172
#[default]
173173
VhdlCommon,
174-
Minimal,
174+
Keep,
175175
}
176176

177177
impl Preset {
@@ -190,19 +190,7 @@ impl Preset {
190190
Category::Type => Case::Lower,
191191
Category::Alias => Case::Lower,
192192
},
193-
Preset::Minimal => enum_map! {
194-
Category::Constant => Case::Upper,
195-
Category::Attribute => Case::Keep,
196-
Category::DesignUnit => Case::Keep,
197-
Category::EnumLiteral => Case::Upper,
198-
Category::Keyword => Case::Keep,
199-
Category::Label => Case::Keep,
200-
Category::Library => Case::Keep,
201-
Category::Object => Case::Keep,
202-
Category::Subprogram => Case::Keep,
203-
Category::Type => Case::Keep,
204-
Category::Alias => Case::Keep,
205-
},
193+
Preset::Keep => CategoryToCaseMap::from_fn(|_| Case::Keep),
206194
}
207195
}
208196
}

0 commit comments

Comments
 (0)