diff options
| author | Philipp Hansch <dev@phansch.net> | 2019-02-25 07:14:44 +0100 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2019-02-25 07:19:56 +0100 |
| commit | bd949328f10d0a0557a4bfcdcf631e28e75029cc (patch) | |
| tree | 8a717dfea3f6a53541ee34ece0216b64e4406be4 | |
| parent | e99611bc39207946be13f6b5b9645baae81ef5ab (diff) | |
| download | rust-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.rs | 2 |
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) { |
