diff options
author | Paul Woolcock <paul@woolcock.us> | 2018-08-25 08:13:25 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2018-08-25 09:13:34 -0400 |
commit | c5788b8bd5ada1db78a3ccd1f9b388a2db03438a (patch) | |
tree | 7cfbb09d009a2fd957b05e2a4b40f53adc3e240d /examples | |
parent | 1436c28e424bccdd8d2ae647c07d551cc858ebb6 (diff) |
rustfmt pass
Diffstat (limited to 'examples')
-rw-r--r-- | examples/register.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/register.rs b/examples/register.rs index 82f6344..1a1524f 100644 --- a/examples/register.rs +++ b/examples/register.rs @@ -2,8 +2,7 @@ #![cfg_attr(not(feature = "toml"), allow(unused_imports))] extern crate elefren; -pub use self::elefren::prelude::*; -pub use self::elefren::apps::prelude::*; +pub use self::elefren::{apps::prelude::*, prelude::*}; use std::{error::Error, io}; @@ -31,10 +30,10 @@ pub fn get_mastodon_data() -> Result<Mastodon, Box<Error>> { pub fn register() -> Result<Mastodon, Box<Error>> { let website = read_line("Please enter your mastodon instance url:")?; let registration = Registration::new(website.trim()) - .client_name("elefren-examples") - .scopes(Scopes::All) - .website("https://github.com/pwoolcoc/elefren") - .register()?; + .client_name("elefren-examples") + .scopes(Scopes::All) + .website("https://github.com/pwoolcoc/elefren") + .register()?; let url = registration.authorize_url()?; println!("Click this link to authorize on Mastodon: {}", url); |