mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-23 03:38:09 -05:00
Merge imports
This commit is contained in:
parent
c2501ae733
commit
25e855a009
2 changed files with 22 additions and 17 deletions
|
@ -1,14 +1,19 @@
|
|||
use anyhow::{Context, Result};
|
||||
use serde::Deserialize;
|
||||
use std::fmt::{self, Debug, Display, Formatter};
|
||||
use std::fs::{self, File};
|
||||
use std::io::{self, BufRead, BufReader};
|
||||
use std::path::PathBuf;
|
||||
use std::process::{Command, Output};
|
||||
use std::{array, mem};
|
||||
use winnow::ascii::{space0, Caseless};
|
||||
use winnow::combinator::opt;
|
||||
use winnow::Parser;
|
||||
use std::{
|
||||
array,
|
||||
fmt::{self, Debug, Display, Formatter},
|
||||
fs::{self, File},
|
||||
io::{self, BufRead, BufReader},
|
||||
mem,
|
||||
path::PathBuf,
|
||||
process::{Command, Output},
|
||||
};
|
||||
use winnow::{
|
||||
ascii::{space0, Caseless},
|
||||
combinator::opt,
|
||||
Parser,
|
||||
};
|
||||
|
||||
use crate::embedded::{WriteStrategy, EMBEDDED_FILES};
|
||||
|
||||
|
|
16
src/main.rs
16
src/main.rs
|
@ -1,9 +1,6 @@
|
|||
use anyhow::{bail, Context, Result};
|
||||
use clap::{Parser, Subcommand};
|
||||
use state_file::StateFile;
|
||||
use std::path::Path;
|
||||
use std::process::exit;
|
||||
use verify::VerifyState;
|
||||
use std::{path::Path, process::exit};
|
||||
|
||||
mod consts;
|
||||
mod embedded;
|
||||
|
@ -15,10 +12,13 @@ mod state_file;
|
|||
mod verify;
|
||||
mod watch;
|
||||
|
||||
use crate::consts::WELCOME;
|
||||
use crate::exercise::{Exercise, InfoFile};
|
||||
use crate::run::run;
|
||||
use crate::verify::verify;
|
||||
use self::{
|
||||
consts::WELCOME,
|
||||
exercise::{Exercise, InfoFile},
|
||||
run::run,
|
||||
state_file::StateFile,
|
||||
verify::{verify, VerifyState},
|
||||
};
|
||||
|
||||
/// Rustlings is a collection of small exercises to get you used to writing and reading Rust code
|
||||
#[derive(Parser)]
|
||||
|
|
Loading…
Reference in a new issue