diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-05 19:48:37 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-05 19:48:37 +0100 |
| commit | 72a9631b038d1a60e4e4a78e92cd69e6f8ce4316 (patch) | |
| tree | 17614efc2e21dd0b8caa24beaaaee7c40c150281 /src/lib.rs | |
| parent | f72b1505bebf8d2fe1a60d386a3a3c3b67d4f903 (diff) | |
Move arg parser into `FuncArgs` and create (incomplete) consistent map ðŸ§
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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())), } |
