Skip to content

Commit

Permalink
Make Diagnostic::rendered public.
Browse files Browse the repository at this point in the history
This is so that Cargo can show a rendered diagnostic.
  • Loading branch information
ehuss committed Dec 12, 2018
1 parent 1ca1cbd commit d904271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct Diagnostic {
/// The message as rustc would render it. Currently this is only
/// `Some` for "suggestions", but eventually it will include all
/// snippets.
rendered: Option<String>,
pub rendered: Option<String>,
}

#[derive(Deserialize, Debug)]
Expand Down

0 comments on commit d904271

Please sign in to comment.