   ;; This uses position in *rustfmt* buffer to know which is the next
   ;; error to jump to, and source: line in the buffer to figure which
   ;; buffer it is from.
-  (let ((rustfmt (get-buffer "*rustfmt*")))
+  (let ((rustfmt (get-buffer rust-rustfmt-buffername)))
     (if (not rustfmt)
         (message "No *rustfmt*, no problems.")
       (let ((target-buffer (with-current-buffer rustfmt

    (point)))

;; Formatting using rustfmt
(defun rust--format-call (buf)
  "Format BUF using rustfmt."
  (with-current-buffer (get-buffer-create "*rustfmt*")
    (erase-buffer)
    (insert-buffer-substring buf)
    (let* ((tmpf (make-temp-file "rustfmt"))

(defun rust--format-error-handler ()
  (let ((ok nil))
    (when rust-format-show-buffer
      (display-buffer (get-buffer rust-rustfmt-buffername))
      (setq ok t))
    (when rust-format-goto-problem
      (rust-goto-format-problem)
