@@ -20,7 +20,7 @@ impl RawEmitter {
2020 if self . file . is_empty ( ) || self . file . ends_with ( "\n \n " ) {
2121 return ;
2222 }
23- writeln ! ( & mut self . file, "" ) . unwrap ( ) ;
23+ writeln ! ( & mut self . file) . unwrap ( ) ;
2424 }
2525
2626 fn emit_bitset ( & mut self , ranges : & [ Range < u32 > ] ) {
@@ -161,10 +161,10 @@ pub fn emit_codepoints(emitter: &mut RawEmitter, ranges: &[Range<u32>]) {
161161
162162 if bitset. bytes_used <= skiplist. bytes_used {
163163 * emitter = bitset;
164- emitter. desc = format ! ( "bitset" ) ;
164+ emitter. desc = String :: from ( "bitset" ) ;
165165 } else {
166166 * emitter = skiplist;
167- emitter. desc = format ! ( "skiplist" ) ;
167+ emitter. desc = String :: from ( "skiplist" ) ;
168168 }
169169}
170170
@@ -289,7 +289,7 @@ impl Canonicalized {
289289 // Remove the now-canonicalized word from other mappings,
290290 // to ensure that we deprioritize them in the next iteration of
291291 // the while loop.
292- for ( _ , mapped) in & mut mappings {
292+ for mapped in mappings. values_mut ( ) {
293293 let mut i = 0 ;
294294 while i != mapped. len ( ) {
295295 if mapped[ i] . 0 == * from {
@@ -309,7 +309,7 @@ impl Canonicalized {
309309
310310 // Remove the now-canonical word from other mappings, to ensure that
311311 // we deprioritize them in the next iteration of the while loop.
312- for ( _ , mapped) in & mut mappings {
312+ for mapped in mappings. values_mut ( ) {
313313 let mut i = 0 ;
314314 while i != mapped. len ( ) {
315315 if mapped[ i] . 0 == to {
0 commit comments