@@ -128,7 +128,7 @@ fn update_dict(parent: &mut Hash, child: &Hash) -> Result<()> {
128128 if let Entry :: Occupied ( mut e) = parent. entry ( key. clone ( ) ) {
129129 match e. get_mut ( ) {
130130 el if el == val => {
131- println ! ( "In {:?}: dublicate rule {:?}, ignored" , key , val ) ;
131+ println ! ( "In {key :?}: dublicate rule {val :?}, ignored" ) ;
132132 }
133133 Yaml :: Array ( a) => match val {
134134 Yaml :: Array ( val) => {
@@ -138,7 +138,7 @@ fn update_dict(parent: &mut Hash, child: &Hash) -> Result<()> {
138138 if !a. contains ( val) {
139139 a. push ( val. clone ( ) ) ;
140140 } else {
141- println ! ( "In {:?}: dublicate rule {:?}, ignored" , key , val ) ;
141+ println ! ( "In {key :?}: dublicate rule {val :?}, ignored" ) ;
142142 }
143143 }
144144 _ => { }
@@ -153,14 +153,11 @@ fn update_dict(parent: &mut Hash, child: &Hash) -> Result<()> {
153153 a. insert ( 0 , s. clone ( ) ) ;
154154 e. insert ( Yaml :: Array ( a) ) ;
155155 } else {
156- println ! ( "In {:?}: dublicate rule {:?}, ignored" , key , s ) ;
156+ println ! ( "In {key :?}: dublicate rule {s :?}, ignored" ) ;
157157 }
158158 }
159159 s2 if matches ! ( s2, Yaml :: String ( _) ) => {
160- println ! (
161- "In {:?}: conflicting rules {:?} and {:?}, ignored" ,
162- key, s, s2
163- ) ;
160+ println ! ( "In {key:?}: conflicting rules {s:?} and {s2:?}, ignored" ) ;
164161 }
165162 _ => { }
166163 } ,
0 commit comments