File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -57,5 +57,5 @@ pub fn normalize_untrusted_str(s: &str) -> String {
57
57
pub use level:: Level ;
58
58
#[ doc( inline) ]
59
59
pub use renderer:: Renderer ;
60
- pub use snippet:: ColumnSeparator ;
60
+ pub use snippet:: Padding ;
61
61
pub use snippet:: * ;
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ impl Renderer {
383
383
self . render_origin ( buffer, max_line_num_len, origin) ;
384
384
last_was_suggestion = false ;
385
385
}
386
- Element :: ColumnSeparator ( _) => {
386
+ Element :: Padding ( _) => {
387
387
self . draw_col_separator_no_space (
388
388
buffer,
389
389
buffer. num_lines ( ) ,
@@ -430,7 +430,7 @@ impl Renderer {
430
430
431
431
let ( has_primary_spans, has_span_labels) =
432
432
next_section. map_or ( ( false , false ) , |s| match s {
433
- Element :: Title ( _) | Element :: ColumnSeparator ( _) => ( false , false ) ,
433
+ Element :: Title ( _) | Element :: Padding ( _) => ( false , false ) ,
434
434
Element :: Cause ( cause) => (
435
435
cause. markers . iter ( ) . any ( |m| m. kind . is_primary ( ) ) ,
436
436
cause. markers . iter ( ) . any ( |m| m. label . is_some ( ) ) ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ impl<'a> Message<'a> {
34
34
v. elements
35
35
. iter ( )
36
36
. map ( |s| match s {
37
- Element :: Title ( _) | Element :: Origin ( _) | Element :: ColumnSeparator ( _) => 0 ,
37
+ Element :: Title ( _) | Element :: Origin ( _) | Element :: Padding ( _) => 0 ,
38
38
Element :: Cause ( cause) => {
39
39
let end = cause
40
40
. markers
@@ -104,7 +104,7 @@ pub enum Element<'a> {
104
104
Cause ( Snippet < ' a , Annotation < ' a > > ) ,
105
105
Suggestion ( Snippet < ' a , Patch < ' a > > ) ,
106
106
Origin ( Origin < ' a > ) ,
107
- ColumnSeparator ( ColumnSeparator ) ,
107
+ Padding ( Padding ) ,
108
108
}
109
109
110
110
impl < ' a > From < Title < ' a > > for Element < ' a > {
@@ -131,14 +131,14 @@ impl<'a> From<Origin<'a>> for Element<'a> {
131
131
}
132
132
}
133
133
134
- impl From < ColumnSeparator > for Element < ' _ > {
135
- fn from ( value : ColumnSeparator ) -> Self {
136
- Self :: ColumnSeparator ( value)
134
+ impl From < Padding > for Element < ' _ > {
135
+ fn from ( value : Padding ) -> Self {
136
+ Self :: Padding ( value)
137
137
}
138
138
}
139
139
140
140
#[ derive( Debug ) ]
141
- pub struct ColumnSeparator ;
141
+ pub struct Padding ;
142
142
143
143
#[ derive( Debug ) ]
144
144
pub struct Title < ' a > {
You can’t perform that action at this time.
0 commit comments