diff options
author | jkozlowski <mail@jakub-kozlowski.com> | 2018-09-24 17:23:16 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-09-25 01:59:57 +0200 |
commit | 1719ba1268c9b228a901f13db64298631d0b3540 (patch) | |
tree | ccca03236379003db22eef6a88a323be4c7c411e /src | |
parent | ad2227b1e3acc6478fc2cc85d89ed5ac9f029cab (diff) |
Back out changes
Diffstat (limited to 'src')
-rw-r--r-- | src/clang.rs | 12 | ||||
-rw-r--r-- | src/codegen/error.rs | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/clang.rs b/src/clang.rs index 7ddd540e..f8f7e581 100644 --- a/src/clang.rs +++ b/src/clang.rs @@ -23,7 +23,7 @@ pub struct Cursor { } impl fmt::Debug for Cursor { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { write!( fmt, "Cursor({} kind: {}, loc: {}, usr: {:?})", @@ -746,7 +746,7 @@ impl PartialEq for Type { impl Eq for Type {} impl fmt::Debug for Type { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { write!( fmt, "Type({}, kind: {}, cconv: {}, decl: {:?}, canon: {:?})", @@ -1153,7 +1153,7 @@ impl SourceLocation { } impl fmt::Display for SourceLocation { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let (file, line, col, _) = self.location(); if let Some(name) = file.name() { write!(f, "{}:{}:{}", name, line, col) @@ -1314,7 +1314,7 @@ impl Index { } impl fmt::Debug for Index { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { write!(fmt, "Index {{ }}") } } @@ -1342,7 +1342,7 @@ pub struct TranslationUnit { } impl fmt::Debug for TranslationUnit { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { write!(fmt, "TranslationUnit {{ }}") } } @@ -1482,7 +1482,7 @@ impl UnsavedFile { } impl fmt::Debug for UnsavedFile { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { write!( fmt, "UnsavedFile(name: {:?}, contents: {:?})", diff --git a/src/codegen/error.rs b/src/codegen/error.rs index 4b7f8827..ccb76c5b 100644 --- a/src/codegen/error.rs +++ b/src/codegen/error.rs @@ -14,7 +14,7 @@ pub enum Error { } impl fmt::Display for Error { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", error::Error::description(self)) } } |