From fa72eb1bd46714861444c2e4d606eb6c769a2bc1 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 27 Dec 2022 17:23:22 +0100 Subject: [PATCH] Fix clippy: Remove unnecessary closure Signed-off-by: Matthias Beyer --- src/apps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.rs b/src/apps.rs index 6130758..5b05cae 100644 --- a/src/apps.rs +++ b/src/apps.rs @@ -110,7 +110,7 @@ impl<'a> AppBuilder<'a> { Ok(App { client_name: self .client_name - .ok_or_else(|| Error::MissingField("client_name"))? + .ok_or(Error::MissingField("client_name"))? .into(), redirect_uris: self .redirect_uris