]> git.lizzy.rs Git - rust.git/commitdiff
Make DiagnosticWrapper private
authorPhilipp Hansch <dev@phansch.net>
Mon, 25 Feb 2019 06:14:44 +0000 (07:14 +0100)
committerPhilipp Hansch <dev@phansch.net>
Mon, 25 Feb 2019 06:19:56 +0000 (07:19 +0100)
It's doesn't have to be public anywhere outside of clippy_lints

clippy_lints/src/utils/diagnostics.rs

index e676a28fe65646d176d83ed6e0de021449ed1c1d..8eea7b8e4f331462cd922139269c7a084523f0b4 100644 (file)
@@ -8,7 +8,7 @@
 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) {