change up examples slightly
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#![cfg_attr(not(feature = "toml"), allow(dead_code))]
|
||||
#![cfg_attr(not(feature = "toml"), allow(unused_imports))]
|
||||
#[macro_use]
|
||||
extern crate pretty_env_logger;
|
||||
extern crate elefren;
|
||||
mod register;
|
||||
|
||||
use register::MastodonClient;
|
||||
@@ -12,7 +15,6 @@ fn main() -> Result<(), Box<error::Error>> {
|
||||
let new_follow = mastodon.follow(input.trim())?;
|
||||
|
||||
println!("{:#?}", new_follow);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Executable → Regular
+3
-1
@@ -1,5 +1,8 @@
|
||||
#![cfg_attr(not(feature = "toml"), allow(dead_code))]
|
||||
#![cfg_attr(not(feature = "toml"), allow(unused_imports))]
|
||||
#[macro_use]
|
||||
extern crate pretty_env_logger;
|
||||
extern crate elefren;
|
||||
mod register;
|
||||
|
||||
use register::MastodonClient;
|
||||
@@ -22,4 +25,3 @@ fn main() {
|
||||
--example print_your_profile --features toml\n"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#![cfg_attr(not(feature = "toml"), allow(dead_code))]
|
||||
#![cfg_attr(not(feature = "toml"), allow(unused_imports))]
|
||||
#[macro_use]
|
||||
extern crate pretty_env_logger;
|
||||
extern crate elefren;
|
||||
mod register;
|
||||
|
||||
use register::MastodonClient;
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#![cfg_attr(not(feature = "toml"), allow(dead_code))]
|
||||
#![cfg_attr(not(feature = "toml"), allow(unused_imports))]
|
||||
#[macro_use]
|
||||
extern crate pretty_env_logger;
|
||||
extern crate elefren;
|
||||
mod register;
|
||||
|
||||
use register::MastodonClient;
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
#![cfg_attr(not(feature = "toml"), allow(dead_code))]
|
||||
#![cfg_attr(not(feature = "toml"), allow(unused_imports))]
|
||||
extern crate elefren;
|
||||
|
||||
pub use self::elefren::prelude::*;
|
||||
pub use elefren::prelude::*;
|
||||
|
||||
use std::{error::Error, io};
|
||||
|
||||
use self::elefren::helpers::cli;
|
||||
use elefren::helpers::cli;
|
||||
#[cfg(feature = "toml")]
|
||||
use self::elefren::helpers::toml;
|
||||
use elefren::helpers::toml;
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[cfg(feature = "toml")]
|
||||
@@ -1,5 +1,8 @@
|
||||
#![cfg_attr(not(feature = "toml"), allow(dead_code))]
|
||||
#![cfg_attr(not(feature = "toml"), allow(unused_imports))]
|
||||
#[macro_use]
|
||||
extern crate pretty_env_logger;
|
||||
extern crate elefren;
|
||||
mod register;
|
||||
|
||||
use register::MastodonClient;
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#![cfg_attr(not(feature = "toml"), allow(dead_code))]
|
||||
#![cfg_attr(not(feature = "toml"), allow(unused_imports))]
|
||||
#[macro_use]
|
||||
extern crate pretty_env_logger;
|
||||
extern crate elefren;
|
||||
mod register;
|
||||
|
||||
use register::MastodonClient;
|
||||
|
||||
Reference in New Issue
Block a user