summaryrefslogtreecommitdiffstats
path: root/src/apps.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps.rs')
-rw-r--r--src/apps.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apps.rs b/src/apps.rs
index 94f503e..d54525a 100644
--- a/src/apps.rs
+++ b/src/apps.rs
@@ -61,7 +61,7 @@ impl App {
/// use elefren::apps::App;
/// use std::error::Error;
///
-/// # fn main() -> Result<(), Box<Error>> {
+/// # fn main() -> Result<(), Box<dyn Error>> {
/// let mut builder = App::builder();
/// builder.client_name("elefren_test");
/// let app = builder.build()?;
@@ -120,7 +120,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