From 18cf800e18733efb828a03ecd1800f4aa8e34ef4 Mon Sep 17 00:00:00 2001
From: David Li
Date: Sat, 9 Jan 2016 15:51:43 -0700
Subject: Fix flycheck-rust not detecting binary crates
---
init.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/init.el b/init.el
index e87d748..156898a 100644
--- a/init.el
+++ b/init.el
@@ -96,6 +96,8 @@ This functions should be added to the hooks of major modes for programming."
;; flycheck
(add-hook 'after-init-hook #'global-flycheck-mode)
+;;; needed for flychcek to check whether the crate is binary or library
+(add-hook 'flycheck-mode-hook #'flycheck-rust-setup)
;; company-mode
(add-hook 'after-init-hook 'global-company-mode)
--
cgit v1.2.3