summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorolivia <olivia@fastmail.com>2018-05-16 15:30:30 +0200
committerolivia <olivia@fastmail.com>2018-05-16 15:30:30 +0200
commit89f2a986c07da3f8ecde5fdc2e2edc5ac110ef21 (patch)
treec53718e4f444493c4d82cc4d8d060ff3aab01eb3 /src
parent5310dfd4065bb28337402792878627a2bc390d5e (diff)
rustfmt
Diffstat (limited to 'src')
-rw-r--r--src/about_variables.rs10
-rw-r--r--src/macros.rs1
-rw-r--r--src/main.rs5
3 files changed, 8 insertions, 8 deletions
diff --git a/src/about_variables.rs b/src/about_variables.rs
index ede3479..ab2f143 100644
--- a/src/about_variables.rs
+++ b/src/about_variables.rs
@@ -1,4 +1,4 @@
-fn guess_this () -> i32 {
+fn guess_this() -> i32 {
let one = 5;
let two = 7;
let three = 3;
@@ -6,7 +6,7 @@ fn guess_this () -> i32 {
return result;
}
-fn simple () -> &'static str {
+fn simple() -> &'static str {
let hello = "Hello World!";
return hello;
}
@@ -14,16 +14,16 @@ fn simple () -> &'static str {
mod tests {
use super::*;
- pub fn test_simple () {
+ pub fn test_simple() {
verify!("Hello World!", simple(), "Simple example");
}
- pub fn test_complicated () {
+ pub fn test_complicated() {
verify!(1, guess_this(), "Complicated example");
}
}
-pub fn exec () {
+pub fn exec() {
tests::test_simple();
tests::test_complicated();
}
diff --git a/src/macros.rs b/src/macros.rs
index 5c80b84..4bc0871 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -28,4 +28,3 @@ macro_rules! verify_easy {
}
};
}
-
diff --git a/src/main.rs b/src/main.rs
index e708402..68b8c9e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2,10 +2,11 @@
extern crate quicli;
extern crate ansi_term;
-use quicli::prelude::*;
use ansi_term::Color::Yellow;
+use quicli::prelude::*;
-#[macro_use] mod macros;
+#[macro_use]
+mod macros;
mod about_variables;
#[derive(Debug, StructOpt)]