Skip to content

Commit

Permalink
Cargo fmt the rustlings application code
Browse files Browse the repository at this point in the history
Signed-off-by: Eddy Petrisor <[email protected]>
  • Loading branch information
eddyp committed May 22, 2019
1 parent 1f2ee8c commit ca6bf96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/exercise.rs
Original file line number Diff line number Diff line change
@@ -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"];
Expand Down Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/run.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::exercise::{Exercise, Mode};
use console::{style, Emoji};
use indicatif::ProgressBar;

pub fn verify<'a>(start_at: impl IntoIterator<Item=&'a Exercise>) -> Result<(), ()> {
pub fn verify<'a>(start_at: impl IntoIterator<Item = &'a Exercise>) -> Result<(), ()> {
for exercise in start_at {
match exercise.mode {
Mode::Test => test(&exercise)?,
Expand Down

0 comments on commit ca6bf96

Please sign in to comment.