lang/rust: fix +rust-cargo-project-p not detecting nearer Cargo.toml files

This commit is contained in:
Henrik Lissner 2018-03-14 18:44:55 -04:00
parent b19d30b145
commit de730535a4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -5,4 +5,4 @@
;;;###autoload
(defun +rust-cargo-project-p ()
"Return t if this is a cargo project."
(doom-project-has! "Cargo.toml"))
(locate-dominating-file buffer-file-name "Cargo.toml"))