Skip to content

Commit

Permalink
Fix a compilation warning: argument shadowing variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojiangbin committed Jan 6, 2018
1 parent 2b0ebc9 commit 806ddd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cargo-process.el
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ Always set to nil if cargo-process--enable-rust-backtrace is nil"
(setenv cargo-process--rust-backtrace "1")
(setenv cargo-process--rust-backtrace nil))))

(defun cargo-process--start (name command &optional last-command)
(defun cargo-process--start (name command &optional last-cmd)
"Start the Cargo process NAME with the cargo command COMMAND."
(set-rust-backtrace command)
(let* ((buffer (concat "*Cargo " name "*"))
(cmd
(or last-command
(or last-cmd
(cargo-process--maybe-read-command
(mapconcat #'identity (list cargo-process--custom-path-to-bin
command
Expand Down

0 comments on commit 806ddd8

Please sign in to comment.