Make DiagnosticWrapper private

It's doesn't have to be public anywhere outside of clippy_lints
This commit is contained in:
Philipp Hansch 2019-02-25 07:14:44 +01:00
parent e99611bc39
commit bd949328f1
No known key found for this signature in database
GPG key ID: B6FA06A6E0E2665B

View file

@ -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) {