File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11#![ deny( rust_2018_idioms) ]
2+ #![ warn( missing_debug_implementations) ]
23
34//! A library for formatting of text or programming code snippets.
45//!
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ use stylesheet::Stylesheet;
2424pub const DEFAULT_TERM_WIDTH : usize = 140 ;
2525
2626/// A renderer for [`Message`]s
27- #[ derive( Clone ) ]
27+ #[ derive( Clone , Debug ) ]
2828pub struct Renderer {
2929 anonymized_line_numbers : bool ,
3030 term_width : usize ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use std::ops::Range;
1515/// Primary structure provided for formatting
1616///
1717/// See [`Level::title`] to create a [`Message`]
18+ #[ derive( Debug ) ]
1819pub struct Message < ' a > {
1920 pub ( crate ) level : Level ,
2021 pub ( crate ) id : Option < & ' a str > ,
@@ -55,6 +56,7 @@ impl<'a> Message<'a> {
5556///
5657/// One `Snippet` is meant to represent a single, continuous,
5758/// slice of source code that you want to annotate.
59+ #[ derive( Debug ) ]
5860pub struct Snippet < ' a > {
5961 pub ( crate ) origin : Option < & ' a str > ,
6062 pub ( crate ) line_start : usize ,
You can’t perform that action at this time.
0 commit comments