summaryrefslogtreecommitdiff
path: root/src/bin/day2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/day2.rs')
-rw-r--r--src/bin/day2.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/day2.rs b/src/bin/day2.rs
index 8c5c54d..46abcc9 100644
--- a/src/bin/day2.rs
+++ b/src/bin/day2.rs
@@ -1,6 +1,6 @@
#![feature(test)]
-use std::str::FromStr;
use std::error::Error;
+use std::str::FromStr;
const COLORS: [&str; 3] = ["red", "green", "blue"];
const AMOUNT: [u32; 3] = [12, 13, 14];
@@ -12,7 +12,9 @@ struct HelloWorld {
impl FromStr for HelloWorld {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> Result<Self, Self::Err> {
- Ok(HelloWorld { msg: String::from(s), })
+ Ok(HelloWorld {
+ msg: String::from(s),
+ })
}
}