summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2018-08-24 11:55:07 -0400
committerPaul Woolcock <paul@woolcock.us>2018-08-24 11:55:07 -0400
commit043d3753e15cc9dc56cc604df26f3ad92f9ebecc (patch)
tree62fbd94beebc98bfe986d187ccb856225383b219 /examples
parent19ea7c74822d66cafdee2b48e33d6d18a6e5a303 (diff)
rustfmt pass
Diffstat (limited to 'examples')
-rw-r--r--examples/follow_profile.rs5
-rw-r--r--examples/print_your_profile.rs5
-rw-r--r--examples/register.rs2
-rw-r--r--examples/search.rs5
-rw-r--r--examples/upload_photo.rs5
5 files changed, 17 insertions, 5 deletions
diff --git a/examples/follow_profile.rs b/examples/follow_profile.rs
index f6fb468..ba0b8c3 100644
--- a/examples/follow_profile.rs
+++ b/examples/follow_profile.rs
@@ -18,5 +18,8 @@ fn main() -> Result<(), Box<error::Error>> {
#[cfg(not(feature = "toml"))]
fn main() {
- println!("examples require the `toml` feature, run this command for this example:\n\ncargo run --example follow_profile --features toml\n");
+ println!(
+ "examples require the `toml` feature, run this command for this example:\n\ncargo run \
+ --example follow_profile --features toml\n"
+ );
}
diff --git a/examples/print_your_profile.rs b/examples/print_your_profile.rs
index 4608233..5492648 100644
--- a/examples/print_your_profile.rs
+++ b/examples/print_your_profile.rs
@@ -17,5 +17,8 @@ fn main() -> Result<(), Box<error::Error>> {
#[cfg(not(feature = "toml"))]
fn main() {
- println!("examples require the `toml` feature, run this command for this example:\n\ncargo run --example print_your_profile --features toml\n");
+ println!(
+ "examples require the `toml` feature, run this command for this example:\n\ncargo run \
+ --example print_your_profile --features toml\n"
+ );
}
diff --git a/examples/register.rs b/examples/register.rs
index cfa846d..052cf71 100644
--- a/examples/register.rs
+++ b/examples/register.rs
@@ -66,4 +66,4 @@ pub fn read_line(message: &str) -> Result<String, Box<Error>> {
}
#[cfg(not(feature = "toml"))]
-fn main() { }
+fn main() {}
diff --git a/examples/search.rs b/examples/search.rs
index 4210c2a..7eb5c13 100644
--- a/examples/search.rs
+++ b/examples/search.rs
@@ -18,5 +18,8 @@ fn main() -> Result<(), Box<error::Error>> {
#[cfg(not(feature = "toml"))]
fn main() {
- println!("examples require the `toml` feature, run this command for this example:\n\ncargo run --example search --features toml\n");
+ println!(
+ "examples require the `toml` feature, run this command for this example:\n\ncargo run \
+ --example search --features toml\n"
+ );
}
diff --git a/examples/upload_photo.rs b/examples/upload_photo.rs
index b761a24..f75df7d 100644
--- a/examples/upload_photo.rs
+++ b/examples/upload_photo.rs
@@ -17,5 +17,8 @@ fn main() -> Result<(), Box<error::Error>> {
#[cfg(not(feature = "toml"))]
fn main() {
- println!("examples require the `toml` feature, run this command for this example:\n\ncargo run --example upload_photo --features toml\n");
+ println!(
+ "examples require the `toml` feature, run this command for this example:\n\ncargo run \
+ --example upload_photo --features toml\n"
+ );
}