@@ -12,7 +12,7 @@ use crate::{
1212 hash_cite_confusion, log_pr_bib_name, nonexistent_cross_reference_error, print_a_token,
1313 print_bib_name, print_confusion, print_fn_class, print_missing_entry,
1414 } ,
15- pool:: { StringPool , StrNumber } ,
15+ pool:: { StrNumber , StringPool } ,
1616 scan:: { eat_bst_white_space, scan_fn_def, scan_identifier, Scan , ScanRes } ,
1717 Bibtex , BibtexError , GlobalItems , HashPointer , StrIlk ,
1818} ;
@@ -369,7 +369,9 @@ fn bst_iterate_command(
369369
370370 let mut sort_cite_ptr = 0 ;
371371 while sort_cite_ptr < globals. cites . num_cites ( ) {
372- globals. cites . set_ptr ( globals. cites . info ( sort_cite_ptr) . to_raw_dangerous ( ) ) ;
372+ globals
373+ . cites
374+ . set_ptr ( globals. cites . info ( sort_cite_ptr) . to_raw_dangerous ( ) ) ;
373375 execute_fn ( ctx, globals, fn_loc) ?;
374376 check_command_execution ( ctx, globals. pool , globals. hash , globals. cites ) ?;
375377 sort_cite_ptr += 1 ;
@@ -400,9 +402,12 @@ fn bst_macro_command(
400402 let bst_fn = & mut globals. buffers . buffer_mut ( BufTy :: Base ) [ range] ;
401403 bst_fn. make_ascii_lowercase ( ) ;
402404
403- let res = globals
404- . hash
405- . lookup_str_insert ( ctx, globals. pool , bst_fn, HashExtra :: Macro ( StrNumber :: invalid ( ) ) ) ?;
405+ let res = globals. hash . lookup_str_insert (
406+ ctx,
407+ globals. pool ,
408+ bst_fn,
409+ HashExtra :: Macro ( StrNumber :: invalid ( ) ) ,
410+ ) ?;
406411 if res. exists {
407412 print_a_token ( ctx, globals. buffers ) ;
408413 ctx. write_logs ( " is already defined as a macro" ) ;
@@ -651,7 +656,8 @@ fn bst_read_command(
651656 }
652657 if !ctx. all_entries
653658 && cite_parent_ptr >= globals. cites . old_num_cites ( )
654- && globals. cites . info ( cite_parent_ptr) . to_raw_dangerous ( ) < ctx. config . min_crossrefs as usize
659+ && globals. cites . info ( cite_parent_ptr) . to_raw_dangerous ( )
660+ < ctx. config . min_crossrefs as usize
655661 {
656662 globals. other . set_field ( field_ptr, StrNumber :: invalid ( ) ) ;
657663 }
@@ -728,7 +734,9 @@ fn bst_read_command(
728734 globals. entries . init_entries ( globals. cites ) ;
729735
730736 for idx in 0 ..globals. cites . num_cites ( ) {
731- globals. cites . set_info ( idx, StrNumber :: from_raw_dangerous ( idx) ) ;
737+ globals
738+ . cites
739+ . set_info ( idx, StrNumber :: from_raw_dangerous ( idx) ) ;
732740 }
733741 globals. cites . set_ptr ( globals. cites . num_cites ( ) ) ;
734742
@@ -786,7 +794,9 @@ fn bst_reverse_command(
786794 ctx. mess_with_entries = true ;
787795
788796 for idx in ( 0 ..globals. cites . num_cites ( ) ) . rev ( ) {
789- globals. cites . set_ptr ( globals. cites . info ( idx) . to_raw_dangerous ( ) ) ;
797+ globals
798+ . cites
799+ . set_ptr ( globals. cites . info ( idx) . to_raw_dangerous ( ) ) ;
790800 execute_fn ( ctx, globals, fn_loc) ?;
791801 check_command_execution ( ctx, globals. pool , globals. hash , globals. cites ) ?;
792802 }
0 commit comments