summaryrefslogtreecommitdiff
path: root/abnf_to_pest/src
diff options
context:
space:
mode:
authorNadrieril2019-04-15 17:57:16 +0200
committerNadrieril2019-04-15 17:57:16 +0200
commit7f0d5d7b697505d23afa4955b64daf6af52d2e1a (patch)
treeae5529a436ef95042cea529f8ab40533e0ecc24f /abnf_to_pest/src
parent7488297db17375bd586653820d1d1dc29f87f93a (diff)
clippy
Diffstat (limited to 'abnf_to_pest/src')
-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),
)
}
}