@@ -16,7 +16,7 @@ use crate::{
1616 mutators:: { MutationResult , Mutator , Tokens , rand_range} ,
1717 nonzero,
1818 stages:: {
19- UnicodeIdentificationMetadata , extract_metadata ,
19+ UnicodeIdentificationMetadata ,
2020 mutational:: { MutatedTransform , MutatedTransformPost } ,
2121 } ,
2222 state:: { HasCorpus , HasMaxSize , HasRand } ,
@@ -268,7 +268,7 @@ fn rand_replace_range<S: HasRand + HasMaxSize, F: Fn(&mut S) -> char>(
268268 }
269269
270270 input. 0 . splice ( range, replacement) ;
271- input. 1 = extract_metadata ( input. 0 . mutator_bytes ( ) ) ;
271+ input. 1 = UnicodeIdentificationMetadata :: new ( input. 0 . mutator_bytes ( ) ) ;
272272
273273 MutationResult :: Mutated
274274}
@@ -445,7 +445,7 @@ where
445445 }
446446
447447 input. 0 . splice ( range, token. iter ( ) . copied ( ) ) ;
448- input. 1 = extract_metadata ( input. 0 . mutator_bytes ( ) ) ;
448+ input. 1 = UnicodeIdentificationMetadata :: new ( input. 0 . mutator_bytes ( ) ) ;
449449 return Ok ( MutationResult :: Mutated ) ;
450450 }
451451
@@ -508,7 +508,7 @@ where
508508 }
509509
510510 input. 0 . splice ( range, token. iter ( ) . copied ( ) ) ;
511- input. 1 = extract_metadata ( input. 0 . mutator_bytes ( ) ) ;
511+ input. 1 = UnicodeIdentificationMetadata :: new ( input. 0 . mutator_bytes ( ) ) ;
512512 return Ok ( MutationResult :: Mutated ) ;
513513 }
514514
@@ -528,7 +528,7 @@ mod test {
528528 corpus:: NopCorpus ,
529529 inputs:: { BytesInput , HasMutatorBytes } ,
530530 mutators:: { Mutator , UnicodeCategoryRandMutator , UnicodeSubcategoryRandMutator } ,
531- stages:: extract_metadata ,
531+ stages:: UnicodeIdentificationMetadata ,
532532 state:: StdState ,
533533 } ;
534534
@@ -550,7 +550,7 @@ mod test {
550550 ) ?;
551551
552552 for _ in 0 ..( 1 << 12 ) {
553- let metadata = extract_metadata ( bytes. mutator_bytes ( ) ) ;
553+ let metadata = UnicodeIdentificationMetadata :: new ( bytes. mutator_bytes ( ) ) ;
554554 let mut input = ( bytes, metadata) ;
555555 let _ = mutator. mutate ( & mut state, & mut input) ;
556556 println ! (
@@ -585,7 +585,7 @@ mod test {
585585 ) ?;
586586
587587 for _ in 0 ..( 1 << 12 ) {
588- let metadata = extract_metadata ( bytes. mutator_bytes ( ) ) ;
588+ let metadata = UnicodeIdentificationMetadata :: new ( bytes. mutator_bytes ( ) ) ;
589589 let mut input = ( bytes, metadata) ;
590590 let _ = mutator. mutate ( & mut state, & mut input) ;
591591 println ! (
0 commit comments