Skip to content

Commit 1cd9328

Browse files
author
Ben Armstead
authored
fix(cli): remove unnecessary borrows (#829)
* Update dependencies * Format better and remove unnecessary borrows
1 parent ec52782 commit 1cd9328

File tree

4 files changed

+68
-66
lines changed

4 files changed

+68
-66
lines changed

Cargo.lock

Lines changed: 58 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/exercise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ path = "{}.rs""#,
162162

163163
if cmd.status.success() {
164164
Ok(CompiledExercise {
165-
exercise: &self,
165+
exercise: self,
166166
_handle: FileHandle,
167167
})
168168
} else {

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ fn main() {
203203
Subcommands::Run(subargs) => {
204204
let exercise = find_exercise(&subargs.name, &exercises);
205205

206-
run(&exercise, verbose).unwrap_or_else(|_| std::process::exit(1));
206+
run(exercise, verbose).unwrap_or_else(|_| std::process::exit(1));
207207
}
208208

209209
Subcommands::Hint(subargs) => {

0 commit comments

Comments
 (0)