diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-13 13:09:03 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-13 13:09:39 +0200 |
| commit | 5c04185892947969005ffcf6412d7190dafb3a79 (patch) | |
| tree | feef0dcb373261e44a31242584635f11c6cc1701 /src/macros.rs | |
| parent | e2d17aa9d9491b339e6200c97b52f7ade51fa1d8 (diff) | |
Reformat some things 🧺
Diffstat (limited to 'src/macros.rs')
| -rw-r--r-- | src/macros.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/macros.rs b/src/macros.rs index 6aab95cf..831a37c8 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,17 +1,10 @@ -//! Error handling. - /// Create an error type. macro_rules! error_type { - ( // The variable used instead of self in functions - // followed by the error type things are happening on. + ( $var:ident: $err:ident, - // Optionally the name of a result type to generate. $(res: $res:ident,)* - // A `Display` and `Debug` implementation. show: $f:ident => $show:expr, - // Optionally a `source` function for the `std::error::Error` trait. $(source: $source:expr,)* - // Any number of `From` implementations. $(from: ($from:path, $conv:expr),)* ) => { // Possibly create a result type. |
