summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/clang.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/clang.rs b/src/clang.rs
index 77cead95..3d87dccd 100755
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -1047,9 +1047,11 @@ impl Diagnostic {
clang_getDiagnosticSeverity(self.x)
}
}
+}
+impl Drop for Diagnostic {
/// Destroy this diagnostic message.
- pub fn dispose(&self) {
+ fn drop(&mut self) {
unsafe {
clang_disposeDiagnostic(self.x);
}