@@ -348,7 +348,7 @@ mod tests {
348348 let mut suggestion = PhoneticSuggestion :: default ( ) ;
349349 let mut selections = HashMap :: with_hasher ( RandomState :: new ( ) ) ;
350350 let mut config = get_phonetic_method_defaults ( ) ;
351- let data = Data :: new ( & config ) ;
351+ let data = Data :: new ( ) ;
352352 config. set_suggestion_include_english ( true ) ;
353353
354354 suggestion. suggest ( ":)" , & data, & mut selections, & config) ;
@@ -382,7 +382,7 @@ mod tests {
382382 let mut suggestion = PhoneticSuggestion :: default ( ) ;
383383 let mut selections = HashMap :: with_hasher ( RandomState :: new ( ) ) ;
384384 let mut config = get_phonetic_method_defaults ( ) ;
385- let data = Data :: new ( & config ) ;
385+ let data = Data :: new ( ) ;
386386 config. set_suggestion_include_english ( true ) ;
387387 config. set_ansi_encoding ( true ) ;
388388
@@ -404,7 +404,7 @@ mod tests {
404404 let mut suggestion = PhoneticSuggestion :: default ( ) ;
405405 let mut selections = HashMap :: with_hasher ( RandomState :: new ( ) ) ;
406406 let mut config = get_phonetic_method_defaults ( ) ;
407- let data = Data :: new ( & config ) ;
407+ let data = Data :: new ( ) ;
408408 config. set_suggestion_include_english ( true ) ;
409409 config. set_smart_quote ( true ) ;
410410
@@ -436,7 +436,7 @@ mod tests {
436436 let mut suggestion = PhoneticSuggestion :: default ( ) ;
437437 let mut selections = HashMap :: with_hasher ( RandomState :: new ( ) ) ;
438438 let config = get_phonetic_method_defaults ( ) ;
439- let data = Data :: new ( & config ) ;
439+ let data = Data :: new ( ) ;
440440
441441 suggestion. suggest ( ":)" , & data, & mut selections, & config) ;
442442 assert_eq ! ( suggestion. suggestions, [ "😃" , ":)" , "ঃ" , "ঃ)" ] ) ;
@@ -471,7 +471,7 @@ mod tests {
471471 let mut suggestion = PhoneticSuggestion :: default ( ) ;
472472 let mut selections = HashMap :: with_hasher ( RandomState :: new ( ) ) ;
473473 let config = get_phonetic_method_defaults ( ) ;
474- let data = Data :: new ( & config ) ;
474+ let data = Data :: new ( ) ;
475475
476476 suggestion. suggest ( "a" , & data, & mut selections, & config) ;
477477 assert_eq ! (
@@ -511,7 +511,7 @@ mod tests {
511511 let mut suggestion = PhoneticSuggestion :: default ( ) ;
512512 let mut selections = HashMap :: with_hasher ( RandomState :: new ( ) ) ;
513513 let config = get_phonetic_method_defaults ( ) ;
514- let data = Data :: new ( & config ) ;
514+ let data = Data :: new ( ) ;
515515
516516 suggestion. suggest ( "a" , & data, & mut selections, & config) ;
517517 suggestion. suggest ( "ap" , & data, & mut selections, & config) ;
@@ -597,8 +597,7 @@ mod tests {
597597 #[ test]
598598 fn test_suffix ( ) {
599599 let mut cache = HashMap :: with_hasher ( RandomState :: new ( ) ) ;
600- let config = get_phonetic_method_defaults ( ) ;
601- let data = Data :: new ( & config) ;
600+ let data = Data :: new ( ) ;
602601
603602 cache. insert (
604603 "computer" . to_string ( ) ,
@@ -652,8 +651,7 @@ mod tests {
652651 fn test_prev_selected ( ) {
653652 let mut suggestion = PhoneticSuggestion :: default ( ) ;
654653 let mut selections = HashMap :: with_hasher ( RandomState :: new ( ) ) ;
655- let config = get_phonetic_method_defaults ( ) ;
656- let data = Data :: new ( & config) ;
654+ let data = Data :: new ( ) ;
657655
658656 selections. insert ( "onno" . to_string ( ) , "অন্য" . to_string ( ) ) ;
659657 selections. insert ( "i" . to_string ( ) , "ই" . to_string ( ) ) ;
@@ -735,7 +733,7 @@ mod tests {
735733 let mut suggestion = PhoneticSuggestion :: default ( ) ;
736734 let mut selections = HashMap :: with_hasher ( RandomState :: new ( ) ) ;
737735 let config = get_phonetic_method_defaults ( ) ;
738- let data = Data :: new ( & config ) ;
736+ let data = Data :: new ( ) ;
739737 selections. insert ( "sesh" . to_string ( ) , "শেষ" . to_string ( ) ) ;
740738
741739 let ( suggestions, selection) = suggestion. suggest ( "sesh" , & data, & mut selections, & config) ;
@@ -784,7 +782,7 @@ mod benches {
784782 fn bench_phonetic_a ( b : & mut Bencher ) {
785783 let mut suggestion = PhoneticSuggestion :: default ( ) ;
786784 let config = get_phonetic_method_defaults ( ) ;
787- let data = Data :: new ( & config ) ;
785+ let data = Data :: new ( ) ;
788786 let term = SplittedString :: split ( "a" , false ) ;
789787
790788 b. iter ( || {
@@ -797,7 +795,7 @@ mod benches {
797795 fn bench_phonetic_kkhet ( b : & mut Bencher ) {
798796 let mut suggestion = PhoneticSuggestion :: default ( ) ;
799797 let config = get_phonetic_method_defaults ( ) ;
800- let data = Data :: new ( & config ) ;
798+ let data = Data :: new ( ) ;
801799 let term = SplittedString :: split ( "kkhet" , false ) ;
802800
803801 b. iter ( || {
@@ -810,7 +808,7 @@ mod benches {
810808 fn bench_phonetic_bistari ( b : & mut Bencher ) {
811809 let mut suggestion = PhoneticSuggestion :: default ( ) ;
812810 let config = get_phonetic_method_defaults ( ) ;
813- let data = Data :: new ( & config ) ;
811+ let data = Data :: new ( ) ;
814812 let term = SplittedString :: split ( "bistari" , false ) ;
815813
816814 b. iter ( || {
@@ -823,7 +821,7 @@ mod benches {
823821 fn bench_phonetic_database_a ( b : & mut Bencher ) {
824822 let config = get_phonetic_method_defaults ( ) ;
825823 let mut suggestion = PhoneticSuggestion :: default ( ) ;
826- let data = Data :: new ( & config ) ;
824+ let data = Data :: new ( ) ;
827825 b. iter ( || {
828826 let mut suggestions = Vec :: new ( ) ;
829827 suggestion. include_from_dictionary ( "a" , "" , & mut suggestions) ;
@@ -835,7 +833,7 @@ mod benches {
835833 fn bench_phonetic_database_aro ( b : & mut Bencher ) {
836834 let config = get_phonetic_method_defaults ( ) ;
837835 let mut suggestion = PhoneticSuggestion :: default ( ) ;
838- let data = Data :: new ( & config ) ;
836+ let data = Data :: new ( ) ;
839837 b. iter ( || {
840838 let mut suggestions = Vec :: new ( ) ;
841839 suggestion. include_from_dictionary ( "arO" , "" , & mut suggestions) ;
@@ -847,7 +845,7 @@ mod benches {
847845 fn bench_phonetic_database_bistari ( b : & mut Bencher ) {
848846 let config = get_phonetic_method_defaults ( ) ;
849847 let mut suggestion = PhoneticSuggestion :: default ( ) ;
850- let data = Data :: new ( & config ) ;
848+ let data = Data :: new ( ) ;
851849 b. iter ( || {
852850 let mut suggestions = Vec :: new ( ) ;
853851 suggestion. include_from_dictionary ( "bistari" , "" , & mut suggestions) ;
0 commit comments