summaryrefslogtreecommitdiff
path: root/src/run.rs
diff options
context:
space:
mode:
authorYuri Astrakhan <YuriAstrakhan@gmail.com>2022-10-12 16:30:52 -0400
committerYuri Astrakhan <YuriAstrakhan@gmail.com>2022-10-12 16:43:07 -0400
commit2940ad059d7f0fa1dbcbed2a6c522ba3cbfd0ec7 (patch)
tree24947e3db0eabbf5f3ec9a2990f43f69329f9982 /src/run.rs
parent56a4f1680dba7647bca2e3d94ba8fe16d27e547b (diff)
Apply uninlined-format-args clippy lint
This lint should also be applied to the excersies, but I am not certain how to run it for all non-crate individual files. To re-run: ``` rustup run nightly cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args ```
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/run.rs b/src/run.rs
index 826f00a..1e2e56c 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -35,7 +35,7 @@ pub fn reset(exercise: &Exercise) -> 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));
+ progress_bar.set_message(format!("Compiling {exercise}..."));
progress_bar.enable_steady_tick(100);
let compilation_result = exercise.compile();
@@ -52,7 +52,7 @@ fn compile_and_run(exercise: &Exercise) -> Result<(), ()> {
}
};
- progress_bar.set_message(format!("Running {}...", exercise));
+ progress_bar.set_message(format!("Running {exercise}..."));
let result = compilation.run();
progress_bar.finish_and_clear();