Skip to content

Commit

Permalink
fix(cli): remove unnecessary borrows (rust-lang#829)
Browse files Browse the repository at this point in the history
* Update dependencies

* Format better and remove unnecessary borrows
  • Loading branch information
Ben Armstead authored Aug 24, 2021
1 parent ec52782 commit 1cd9328
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 66 deletions.
114 changes: 58 additions & 56 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion src/exercise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ path = "{}.rs""#,

if cmd.status.success() {
Ok(CompiledExercise {
exercise: &self,
exercise: self,
_handle: FileHandle,
})
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ fn main() {
Subcommands::Run(subargs) => {
let exercise = find_exercise(&subargs.name, &exercises);

run(&exercise, verbose).unwrap_or_else(|_| std::process::exit(1));
run(exercise, verbose).unwrap_or_else(|_| std::process::exit(1));
}

Subcommands::Hint(subargs) => {
Expand Down
Loading

0 comments on commit 1cd9328

Please sign in to comment.