summaryrefslogtreecommitdiff
path: root/abnf_to_pest
diff options
context:
space:
mode:
Diffstat (limited to 'abnf_to_pest')
-rw-r--r--abnf_to_pest/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/abnf_to_pest/src/lib.rs b/abnf_to_pest/src/lib.rs
index cff81ef..a44caf3 100644
--- a/abnf_to_pest/src/lib.rs
+++ b/abnf_to_pest/src/lib.rs
@@ -1,4 +1,3 @@
-#![allow(clippy::implicit_hasher, clippy::or_fun_call)]
#![doc(html_root_url = "https://docs.rs/abnf_to_pest/0.1.0")]
//! A tiny crate that helps convert ABNF grammars to [pest][pest].
@@ -60,7 +59,7 @@ impl Pretty for Repetition {
self.repeat
.as_ref()
.map(Repeat::pretty)
- .unwrap_or(Doc::nil()),
+ .unwrap_or_else(Doc::nil),
)
}
}