Skip to content

Commit

Permalink
Resolves clippy errors (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
s34m authored Nov 3, 2022
1 parent 9233846 commit 8731fd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/steps/os/archlinux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ impl Aura {

impl ArchPackageManager for Aura {
fn upgrade(&self, ctx: &ExecutionContext) -> Result<()> {
let sudo = which("sudo").unwrap_or(PathBuf::new());
let sudo = which("sudo").unwrap_or_else(PathBuf::new);
let mut aur_update = ctx.run_type().execute(&sudo);

if sudo.ends_with("sudo") {
Expand Down
2 changes: 1 addition & 1 deletion src/steps/tmux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub fn run_in_tmux(args: Vec<String>) -> ! {
shell_words::join(command)
};

let tmux = Tmux::new(args.clone());
let tmux = Tmux::new(args);

if !tmux.has_session("topgrade").expect("Error detecting a tmux session") {
tmux.new_session("topgrade").expect("Error creating a tmux session");
Expand Down

0 comments on commit 8731fd2

Please sign in to comment.