Skip to content

Commit ca6bf96

Browse files
committed
Cargo fmt the rustlings application code
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
1 parent 1f2ee8c commit ca6bf96

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/exercise.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use serde::Deserialize;
22
use std::fmt::{self, Display, Formatter};
3-
use std::fs::{remove_file};
4-
use std::path::{PathBuf};
3+
use std::fs::remove_file;
4+
use std::path::PathBuf;
55
use std::process::{self, Command, Output};
66

77
const RUSTC_COLOR_ARGS: &[&str] = &["--color", "always"];
@@ -63,8 +63,8 @@ impl Display for Exercise {
6363
#[cfg(test)]
6464
mod test {
6565
use super::*;
66-
use std::path::Path;
6766
use std::fs::File;
67+
use std::path::Path;
6868

6969
#[test]
7070
fn test_clean() {

src/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::exercise::{Mode, Exercise};
1+
use crate::exercise::{Exercise, Mode};
22
use crate::verify::test;
33
use console::{style, Emoji};
44
use indicatif::ProgressBar;

src/verify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::exercise::{Exercise, Mode};
22
use console::{style, Emoji};
33
use indicatif::ProgressBar;
44

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

0 commit comments

Comments
 (0)