From c5788b8bd5ada1db78a3ccd1f9b388a2db03438a Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Sat, 25 Aug 2018 08:13:25 -0400 Subject: rustfmt pass --- examples/register.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'examples') 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> { pub fn register() -> Result> { 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); -- cgit v1.2.3