Skip to content

Commit d904271

Browse files
committed
Make Diagnostic::rendered public.
This is so that Cargo can show a rendered diagnostic.
1 parent 1ca1cbd commit d904271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct Diagnostic {
1515
/// The message as rustc would render it. Currently this is only
1616
/// `Some` for "suggestions", but eventually it will include all
1717
/// snippets.
18-
rendered: Option<String>,
18+
pub rendered: Option<String>,
1919
}
2020

2121
#[derive(Deserialize, Debug)]

0 commit comments

Comments
 (0)