summaryrefslogtreecommitdiff
path: root/ale_linters/rust
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-11 00:31:42 +0100
committerw0rp <devw0rp@gmail.com>2017-08-11 00:31:42 +0100
commitd5ae3201a4128c9e7b1042e9ea40b7f13cf72a10 (patch)
tree86ca55a467b86555aaed7e83e0094a5def357bd1 /ale_linters/rust
parentb1462ac66c10ed323c5148ecd8821c3a433ff403 (diff)
downloadale-d5ae3201a4128c9e7b1042e9ea40b7f13cf72a10.zip
Ban !=# and !=? from the codebase
Diffstat (limited to 'ale_linters/rust')
-rw-r--r--ale_linters/rust/cargo.vim2
-rw-r--r--ale_linters/rust/rustc.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/rust/cargo.vim b/ale_linters/rust/cargo.vim
index 32c09a58..f19061ad 100644
--- a/ale_linters/rust/cargo.vim
+++ b/ale_linters/rust/cargo.vim
@@ -4,7 +4,7 @@
let g:ale_rust_cargo_use_check = get(g:, 'ale_rust_cargo_use_check', 0)
function! ale_linters#rust#cargo#GetCargoExecutable(bufnr) abort
- if ale#path#FindNearestFile(a:bufnr, 'Cargo.toml') !=# ''
+ if ale#path#FindNearestFile(a:bufnr, 'Cargo.toml') isnot# ''
return 'cargo'
else
" if there is no Cargo.toml file, we don't use cargo even if it exists,
diff --git a/ale_linters/rust/rustc.vim b/ale_linters/rust/rustc.vim
index 73c99cd9..e792faa7 100644
--- a/ale_linters/rust/rustc.vim
+++ b/ale_linters/rust/rustc.vim
@@ -7,7 +7,7 @@ function! ale_linters#rust#rustc#RustcCommand(buffer_number) abort
" <project root>/target/release/deps/
let l:cargo_file = ale#path#FindNearestFile(a:buffer_number, 'Cargo.toml')
- if l:cargo_file !=# ''
+ if l:cargo_file isnot# ''
let l:project_root = fnamemodify(l:cargo_file, ':h')
let l:dependencies = '-L ' . l:project_root . '/target/debug/deps -L ' .
\ l:project_root . '/target/release/deps'