From d9042713d2989a95f696ff272d7ea503ee935f93 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 11 Dec 2018 16:09:38 -0800 Subject: [PATCH] Make Diagnostic::rendered public. This is so that Cargo can show a rendered diagnostic. --- src/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diagnostics.rs b/src/diagnostics.rs index e507d56..4b720ef 100644 --- a/src/diagnostics.rs +++ b/src/diagnostics.rs @@ -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, + pub rendered: Option, } #[derive(Deserialize, Debug)]