   (setq-local electric-pair-inhibit-predicate
               'rust-electric-pair-inhibit-predicate-wrap)
   (setq-local electric-pair-skip-self 'rust-electric-pair-skip-self-wrap)
+  ;; Configure prettify
+  (setq prettify-symbols-alist rust-prettify-symbols-alist)
+  (setq prettify-symbols-compose-predicate #'rust--prettify-symbols-compose-p)
 
   (add-hook 'before-save-hook rust-before-save-hook nil t)
   (add-hook 'after-save-hook rust-after-save-hook nil t))

  "Default method to handle rustfmt invocation after save."
  :type 'function
  :group 'rust-mode)

;;; Customization


    table)
  "Syntax definitions and helpers.")

;;; Prettify

(defun rust--prettify-symbols-compose-p (start end match)
  "Return true iff the symbol MATCH should be composed.
See `prettify-symbols-compose-predicate'."
  (and (fboundp 'prettify-symbols-default-compose-p)
       (prettify-symbols-default-compose-p start end match)
       ;; Make sure there is a space before || as it is also used for
       ;; functions with 0 arguments.
       (not (and (string= match "||")
                 (save-excursion
                   (goto-char start)
                   (looking-back "\\(?:\\<move\\|=\\) *"))))))

;;; Mode

(defvar rust-mode-map
