@@ -20,7 +20,7 @@ impl RawEmitter {
20
20
if self . file . is_empty ( ) || self . file . ends_with ( "\n \n " ) {
21
21
return ;
22
22
}
23
- writeln ! ( & mut self . file, "" ) . unwrap ( ) ;
23
+ writeln ! ( & mut self . file) . unwrap ( ) ;
24
24
}
25
25
26
26
fn emit_bitset ( & mut self , ranges : & [ Range < u32 > ] ) {
@@ -161,10 +161,10 @@ pub fn emit_codepoints(emitter: &mut RawEmitter, ranges: &[Range<u32>]) {
161
161
162
162
if bitset. bytes_used <= skiplist. bytes_used {
163
163
* emitter = bitset;
164
- emitter. desc = format ! ( "bitset" ) ;
164
+ emitter. desc = String :: from ( "bitset" ) ;
165
165
} else {
166
166
* emitter = skiplist;
167
- emitter. desc = format ! ( "skiplist" ) ;
167
+ emitter. desc = String :: from ( "skiplist" ) ;
168
168
}
169
169
}
170
170
@@ -289,7 +289,7 @@ impl Canonicalized {
289
289
// Remove the now-canonicalized word from other mappings,
290
290
// to ensure that we deprioritize them in the next iteration of
291
291
// the while loop.
292
- for ( _ , mapped) in & mut mappings {
292
+ for mapped in mappings. values_mut ( ) {
293
293
let mut i = 0 ;
294
294
while i != mapped. len ( ) {
295
295
if mapped[ i] . 0 == * from {
@@ -309,7 +309,7 @@ impl Canonicalized {
309
309
310
310
// Remove the now-canonical word from other mappings, to ensure that
311
311
// we deprioritize them in the next iteration of the while loop.
312
- for ( _ , mapped) in & mut mappings {
312
+ for mapped in mappings. values_mut ( ) {
313
313
let mut i = 0 ;
314
314
while i != mapped. len ( ) {
315
315
if mapped[ i] . 0 == to {
0 commit comments