summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3369d01c..e63ec936 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -135,14 +135,14 @@ impl TypesetError {
}
error_type! {
- err: TypesetError,
+ self: TypesetError,
show: f => {
- write!(f, "{}", err.message)?;
- if let Some(span) = err.span {
+ write!(f, "{}", self.message)?;
+ if let Some(span) = self.span {
write!(f, " at {}", span)?;
}
Ok(())
},
- from: (std::io::Error, TypesetError::with_message(err.to_string())),
- from: (FontError, TypesetError::with_message(err.to_string())),
+ from: (err: std::io::Error, TypesetError::with_message(err.to_string())),
+ from: (err: FontError, TypesetError::with_message(err.to_string())),
}