From ca6bf966dd83fe17e5fe97fb7f42939e07cf7943 Mon Sep 17 00:00:00 2001 From: Eddy Petrisor Date: Wed, 22 May 2019 14:50:23 +0300 Subject: [PATCH] Cargo fmt the rustlings application code Signed-off-by: Eddy Petrisor --- src/exercise.rs | 6 +++--- src/run.rs | 2 +- src/verify.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/exercise.rs b/src/exercise.rs index e0c6ce7..6f526e7 100644 --- a/src/exercise.rs +++ b/src/exercise.rs @@ -1,7 +1,7 @@ use serde::Deserialize; use std::fmt::{self, Display, Formatter}; -use std::fs::{remove_file}; -use std::path::{PathBuf}; +use std::fs::remove_file; +use std::path::PathBuf; use std::process::{self, Command, Output}; const RUSTC_COLOR_ARGS: &[&str] = &["--color", "always"]; @@ -63,8 +63,8 @@ impl Display for Exercise { #[cfg(test)] mod test { use super::*; - use std::path::Path; use std::fs::File; + use std::path::Path; #[test] fn test_clean() { diff --git a/src/run.rs b/src/run.rs index e108e78..1484351 100644 --- a/src/run.rs +++ b/src/run.rs @@ -1,4 +1,4 @@ -use crate::exercise::{Mode, Exercise}; +use crate::exercise::{Exercise, Mode}; use crate::verify::test; use console::{style, Emoji}; use indicatif::ProgressBar; diff --git a/src/verify.rs b/src/verify.rs index c4451b2..4778180 100644 --- a/src/verify.rs +++ b/src/verify.rs @@ -2,7 +2,7 @@ use crate::exercise::{Exercise, Mode}; use console::{style, Emoji}; use indicatif::ProgressBar; -pub fn verify<'a>(start_at: impl IntoIterator) -> Result<(), ()> { +pub fn verify<'a>(start_at: impl IntoIterator) -> Result<(), ()> { for exercise in start_at { match exercise.mode { Mode::Test => test(&exercise)?,