change up examples slightly

This commit is contained in:
Paul Woolcock
2018-10-10 10:28:22 -04:00
parent 4dd40422b3
commit e6879ec8ea
8 changed files with 22 additions and 6 deletions
+3 -1
View File
@@ -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
View File
@@ -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"
);
}
+3
View File
@@ -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;
+3
View File
@@ -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")]
+3
View File
@@ -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;
+3
View File
@@ -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;