diff options
Diffstat (limited to 'src/clang.rs')
-rw-r--r-- | src/clang.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/clang.rs b/src/clang.rs index 36ccd266..074d459b 100644 --- a/src/clang.rs +++ b/src/clang.rs @@ -1401,6 +1401,12 @@ impl fmt::Display for SourceLocation { } } +impl fmt::Debug for SourceLocation { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "{}", self) + } +} + /// A comment in the source text. /// /// Comments are sort of parsed by Clang, and have a tree structure. |