File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -719,21 +719,6 @@ impl<'a> Iterator for CursorLines<'a> {
719719 }
720720}
721721
722- fn format_label (
723- label : Option < & str > ,
724- style : Option < DisplayTextStyle > ,
725- ) -> Vec < DisplayTextFragment < ' _ > > {
726- let mut result = vec ! [ ] ;
727- if let Some ( label) = label {
728- let element_style = style. unwrap_or ( DisplayTextStyle :: Regular ) ;
729- result. push ( DisplayTextFragment {
730- content : label,
731- style : element_style,
732- } ) ;
733- }
734- result
735- }
736-
737722fn format_title < ' a > ( level : crate :: Level , id : Option < & ' a str > , label : & ' a str ) -> DisplayLine < ' a > {
738723 DisplayLine :: Raw ( DisplayRawLine :: Annotation {
739724 annotation : Annotation {
@@ -762,6 +747,21 @@ fn format_footer(footer: snippet::Label<'_>) -> Vec<DisplayLine<'_>> {
762747 result
763748}
764749
750+ fn format_label (
751+ label : Option < & str > ,
752+ style : Option < DisplayTextStyle > ,
753+ ) -> Vec < DisplayTextFragment < ' _ > > {
754+ let mut result = vec ! [ ] ;
755+ if let Some ( label) = label {
756+ let element_style = style. unwrap_or ( DisplayTextStyle :: Regular ) ;
757+ result. push ( DisplayTextFragment {
758+ content : label,
759+ style : element_style,
760+ } ) ;
761+ }
762+ result
763+ }
764+
765765fn format_slice (
766766 snippet : snippet:: Snippet < ' _ > ,
767767 is_first : bool ,
You can’t perform that action at this time.
0 commit comments