File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
crates/djls-conf/src/tagspecs Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 66// project's deprecation policy.
77
88use serde:: Deserialize ;
9+ use std:: collections:: HashMap ;
910
1011use super :: ArgKindDef ;
1112use super :: EndTagDef ;
@@ -101,9 +102,6 @@ fn default_true() -> bool {
101102/// Groups tags by module and creates the appropriate library structure.
102103#[ must_use]
103104pub fn convert_legacy_tagspecs ( legacy : Vec < LegacyTagSpecDef > ) -> TagSpecDef {
104- use std:: collections:: HashMap ;
105-
106- // Group tags by module
107105 let mut modules: HashMap < String , Vec < TagDef > > = HashMap :: new ( ) ;
108106
109107 for legacy_tag in legacy {
@@ -112,7 +110,6 @@ pub fn convert_legacy_tagspecs(legacy: Vec<LegacyTagSpecDef>) -> TagSpecDef {
112110 modules. entry ( module) . or_default ( ) . push ( tag) ;
113111 }
114112
115- // Create libraries from grouped tags
116113 let libraries = modules
117114 . into_iter ( )
118115 . map ( |( module, tags) | TagLibraryDef {
@@ -134,7 +131,6 @@ pub fn convert_legacy_tagspecs(legacy: Vec<LegacyTagSpecDef>) -> TagSpecDef {
134131}
135132
136133fn convert_legacy_tag ( legacy : LegacyTagSpecDef ) -> TagDef {
137- // Determine tag type based on presence of end_tag
138134 let tag_type = if legacy. end_tag . is_some ( ) {
139135 TagTypeDef :: Block
140136 } else {
You can’t perform that action at this time.
0 commit comments