File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -533,7 +533,7 @@ impl Attributes {
533
533
attrs : & [ ast:: Attribute ] ,
534
534
additional_attrs : Option < ( & [ ast:: Attribute ] , DefId ) > ,
535
535
) -> Attributes {
536
- let doc_strings = RefCell :: new ( vec ! [ ] ) ;
536
+ let mut doc_strings = vec ! [ ] ;
537
537
let mut sp = None ;
538
538
let mut cfg = Cfg :: True ;
539
539
let mut doc_line = 0 ;
@@ -550,7 +550,7 @@ impl Attributes {
550
550
551
551
let line = doc_line;
552
552
doc_line += value. lines ( ) . count ( ) ;
553
- doc_strings. borrow_mut ( ) . push ( DocFragment {
553
+ doc_strings. push ( DocFragment {
554
554
line,
555
555
span : attr. span ,
556
556
doc : value,
@@ -575,7 +575,7 @@ impl Attributes {
575
575
{
576
576
let line = doc_line;
577
577
doc_line += contents. lines ( ) . count ( ) ;
578
- doc_strings. borrow_mut ( ) . push ( DocFragment {
578
+ doc_strings. push ( DocFragment {
579
579
line,
580
580
span : attr. span ,
581
581
doc : contents,
@@ -621,7 +621,7 @@ impl Attributes {
621
621
. map_or ( true , |a| a. style == AttrStyle :: Inner ) ;
622
622
623
623
Attributes {
624
- doc_strings : doc_strings . into_inner ( ) ,
624
+ doc_strings,
625
625
other_attrs,
626
626
cfg : if cfg == Cfg :: True { None } else { Some ( Arc :: new ( cfg) ) } ,
627
627
span : sp,
You can’t perform that action at this time.
0 commit comments