File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ use stylesheet::Stylesheet;
24
24
pub const DEFAULT_TERM_WIDTH : usize = 140 ;
25
25
26
26
/// A renderer for [`Message`]s
27
- #[ derive( Clone ) ]
27
+ #[ derive( Clone , Debug ) ]
28
28
pub struct Renderer {
29
29
anonymized_line_numbers : bool ,
30
30
term_width : usize ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use std::ops::Range;
15
15
/// Primary structure provided for formatting
16
16
///
17
17
/// See [`Level::title`] to create a [`Message`]
18
+ #[ derive( Debug ) ]
18
19
pub struct Message < ' a > {
19
20
pub ( crate ) level : Level ,
20
21
pub ( crate ) id : Option < & ' a str > ,
@@ -55,6 +56,7 @@ impl<'a> Message<'a> {
55
56
///
56
57
/// One `Snippet` is meant to represent a single, continuous,
57
58
/// slice of source code that you want to annotate.
59
+ #[ derive( Debug ) ]
58
60
pub struct Snippet < ' a > {
59
61
pub ( crate ) origin : Option < & ' a str > ,
60
62
pub ( crate ) line_start : usize ,
You can’t perform that action at this time.
0 commit comments