-(use-package racer
-  :config
-  (require 'f)
-  (setq racer-cmd (f-expand "~/.cargo/bin/racer")))
-
 (use-package rust-mode
   :config
   (add-hook 'rust-mode-hook #'flycheck-mode)


  (add-hook 'rust-mode-hook #'wh/rust-company-settings)

  (define-key rust-mode-map (kbd "M-.") #'racer-find-definition)

  (defun wh/rust-toggle-visibility ()
    "Toggle the public visibility of the function at point."
    (interactive)

        (insert "pub "))))

  (define-key rust-mode-map (kbd "C-c v") #'wh/rust-toggle-visibility)

  (defun wh/rust-vec-as-slice ()
    "Convert the vector expression at point to a slice.
