Skip to content

Commit

Permalink
refactor(i18n): ♻️ fixed clippy warnings and removed an unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Oct 19, 2021
1 parent 197a278 commit c831fe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/perseus-cli/src/parse.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(missing_docs)] // Prevents double-documenting some things

use crate::PERSEUS_VERSION;
use clap::{AppSettings, Parser};
use clap::Parser;

// The documentation for the `Opts` struct will appear in the help page, hence the lack of puncutation and the lowercasing in places

Expand Down
4 changes: 2 additions & 2 deletions packages/perseus-cli/src/tinker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub fn tinker_internal(
// We make sure to add them at the top (other spinners may have already been instantiated)
let tk_spinner = spinners.insert(0, ProgressBar::new_spinner());
let tk_spinner = cfg_spinner(tk_spinner, &tk_msg);
let tk_target = target.clone();
let tk_target = target;
let tk_thread = spawn_thread(move || {
handle_exit_code!(run_stage(
vec![&format!(
Expand All @@ -66,7 +66,7 @@ pub fn tinker_internal(
pub fn tinker(dir: PathBuf) -> Result<i32, Error> {
let spinners = MultiProgress::new();

let tk_thread = tinker_internal(dir.clone(), &spinners, 1)?;
let tk_thread = tinker_internal(dir, &spinners, 1)?;
let tk_res = tk_thread
.join()
.map_err(|_| ExecutionError::ThreadWaitFailed)??;
Expand Down

0 comments on commit c831fe1

Please sign in to comment.