summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-12-05 19:48:37 +0100
committerLaurenz <laurmaedje@gmail.com>2019-12-05 19:48:37 +0100
commit72a9631b038d1a60e4e4a78e92cd69e6f8ce4316 (patch)
tree17614efc2e21dd0b8caa24beaaaee7c40c150281 /src/lib.rs
parentf72b1505bebf8d2fe1a60d386a3a3c3b67d4f903 (diff)
Move arg parser into `FuncArgs` and create (incomplete) consistent map 🧭
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())),
}