Skip to content

Commit

Permalink
chore: bump library versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shadows-withal committed Apr 20, 2022
1 parent a259704 commit c811643
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 139 deletions.
140 changes: 14 additions & 126 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ authors = ["mokou <[email protected]>", "Carol (Nichols || Goulding) <carol.nic
edition = "2021"

[dependencies]
argh = "0.1.4"
indicatif = "0.10.3"
console = "0.7.7"
notify = "4.0.15"
toml = "0.4.10"
regex = "1.1.6"
serde = { version = "1.0.10", features = ["derive"] }
argh = "0.1"
indicatif = "0.16"
console = "0.15"
notify = "4.0"
toml = "0.5"
regex = "1.5"
serde= { version = "1.0", features = ["derive"] }

[[bin]]
name = "rustlings"
Expand Down
4 changes: 2 additions & 2 deletions src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn run(exercise: &Exercise, verbose: bool) -> Result<(), ()> {
// This is strictly for non-test binaries, so output is displayed
fn compile_and_run(exercise: &Exercise) -> Result<(), ()> {
let progress_bar = ProgressBar::new_spinner();
progress_bar.set_message(format!("Compiling {}...", exercise).as_str());
progress_bar.set_message(format!("Compiling {}...", exercise));
progress_bar.enable_steady_tick(100);

let compilation_result = exercise.compile();
Expand All @@ -37,7 +37,7 @@ fn compile_and_run(exercise: &Exercise) -> Result<(), ()> {
}
};

progress_bar.set_message(format!("Running {}...", exercise).as_str());
progress_bar.set_message(format!("Running {}...", exercise));
let result = compilation.run();
progress_bar.finish_and_clear();

Expand Down
8 changes: 4 additions & 4 deletions src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn test(exercise: &Exercise, verbose: bool) -> Result<(), ()> {
// Invoke the rust compiler without running the resulting binary
fn compile_only(exercise: &Exercise) -> Result<bool, ()> {
let progress_bar = ProgressBar::new_spinner();
progress_bar.set_message(format!("Compiling {}...", exercise).as_str());
progress_bar.set_message(format!("Compiling {}...", exercise));
progress_bar.enable_steady_tick(100);

let _ = compile(exercise, &progress_bar)?;
Expand All @@ -52,12 +52,12 @@ fn compile_only(exercise: &Exercise) -> Result<bool, ()> {
// Compile the given Exercise and run the resulting binary in an interactive mode
fn compile_and_run_interactively(exercise: &Exercise) -> Result<bool, ()> {
let progress_bar = ProgressBar::new_spinner();
progress_bar.set_message(format!("Compiling {}...", exercise).as_str());
progress_bar.set_message(format!("Compiling {}...", exercise));
progress_bar.enable_steady_tick(100);

let compilation = compile(exercise, &progress_bar)?;

progress_bar.set_message(format!("Running {}...", exercise).as_str());
progress_bar.set_message(format!("Running {}...", exercise));
let result = compilation.run();
progress_bar.finish_and_clear();

Expand All @@ -80,7 +80,7 @@ fn compile_and_run_interactively(exercise: &Exercise) -> Result<bool, ()> {
// the output if verbose is set to true
fn compile_and_test(exercise: &Exercise, run_mode: RunMode, verbose: bool) -> Result<bool, ()> {
let progress_bar = ProgressBar::new_spinner();
progress_bar.set_message(format!("Testing {}...", exercise).as_str());
progress_bar.set_message(format!("Testing {}...", exercise));
progress_bar.enable_steady_tick(100);

let compilation = compile(exercise, &progress_bar)?;
Expand Down

0 comments on commit c811643

Please sign in to comment.