about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2019-02-25 07:14:44 +0100
committerPhilipp Hansch <dev@phansch.net>2019-02-25 07:19:56 +0100
commitbd949328f10d0a0557a4bfcdcf631e28e75029cc (patch)
tree8a717dfea3f6a53541ee34ece0216b64e4406be4
parente99611bc39207946be13f6b5b9645baae81ef5ab (diff)
downloadrust-bd949328f10d0a0557a4bfcdcf631e28e75029cc.tar.gz
rust-bd949328f10d0a0557a4bfcdcf631e28e75029cc.zip
Make DiagnosticWrapper private
It's doesn't have to be public anywhere outside of clippy_lints
-rw-r--r--clippy_lints/src/utils/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/utils/diagnostics.rs b/clippy_lints/src/utils/diagnostics.rs
index e676a28fe65..8eea7b8e4f3 100644
--- a/clippy_lints/src/utils/diagnostics.rs
+++ b/clippy_lints/src/utils/diagnostics.rs
@@ -8,7 +8,7 @@ use syntax::errors::DiagnosticBuilder;
 use syntax::source_map::Span;
 
 /// Wrapper around `DiagnosticBuilder` that adds a link to Clippy documentation for the emitted lint
-pub struct DiagnosticWrapper<'a>(pub DiagnosticBuilder<'a>);
+struct DiagnosticWrapper<'a>(DiagnosticBuilder<'a>);
 
 impl<'a> Drop for DiagnosticWrapper<'a> {
     fn drop(&mut self) {