diff options
author | Nadrieril | 2019-04-15 17:57:16 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-15 17:57:16 +0200 |
commit | 7f0d5d7b697505d23afa4955b64daf6af52d2e1a (patch) | |
tree | ae5529a436ef95042cea529f8ab40533e0ecc24f | |
parent | 7488297db17375bd586653820d1d1dc29f87f93a (diff) |
clippy
-rw-r--r-- | abnf_to_pest/src/lib.rs | 3 |
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), ) } } |