summaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-10-16 21:31:14 +0200
committerLaurenz <laurmaedje@gmail.com>2019-10-16 21:31:14 +0200
commitf2f05e07b0ff2d98e3c822b2618d02281ed1078c (patch)
tree6f4f8fa046af49c319d68c012a078f3489ab92aa /src/macros.rs
parenta3c667895e4e5d5673931415397523b9615008d3 (diff)
Implement space extension (multipage) ➕
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/macros.rs b/src/macros.rs
index 831a37c8..a1c182fb 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -12,6 +12,7 @@ macro_rules! error_type {
impl std::fmt::Display for $err {
fn fmt(&self, $f: &mut std::fmt::Formatter) -> std::fmt::Result {
+ #[allow(unused)]
let $var = self;
$show
}
@@ -22,6 +23,7 @@ macro_rules! error_type {
impl std::error::Error for $err {
// The source method is only generated if an implementation was given.
$(fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
+ #[allow(unused)]
let $var = self;
$source
})*