summaryrefslogtreecommitdiff
path: root/ale_linters/rust/cargo.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-01-13 09:23:03 +0000
committerw0rp <devw0rp@gmail.com>2017-01-13 09:23:03 +0000
commitf412b4f96fa49f4ed856db25c10bdf4b9c2e4cec (patch)
treecb2b83e70fac146c2597dcd98cd0e8069c76c652 /ale_linters/rust/cargo.vim
parent3b486d3475af81838788c4e5581ed16e35e368b9 (diff)
downloadale-f412b4f96fa49f4ed856db25c10bdf4b9c2e4cec.zip
Fix some naming conventions and use abort for all Rust functions, and disable the rust linters for now, re #256
Diffstat (limited to 'ale_linters/rust/cargo.vim')
-rw-r--r--ale_linters/rust/cargo.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/rust/cargo.vim b/ale_linters/rust/cargo.vim
index 0cfc1665..0f04f275 100644
--- a/ale_linters/rust/cargo.vim
+++ b/ale_linters/rust/cargo.vim
@@ -2,7 +2,7 @@
" Description: rustc invoked by cargo for rust files
-function! ale_linters#rust#cargo#cargo_or_not_cargo(bufnr)
+function! ale_linters#rust#cargo#GetCargoExecutable(bufnr)
if ale#util#FindNearestFile(a:bufnr, 'Cargo.toml') !=# ''
return 'cargo'
else
@@ -14,8 +14,8 @@ endfunction
call ale#linter#Define('rust', {
\ 'name': 'cargo',
-\ 'executable_callback': 'ale_linters#rust#cargo#cargo_or_not_cargo',
+\ 'executable_callback': 'ale_linters#rust#cargo#GetCargoExecutable',
\ 'command': 'cargo rustc -- --error-format=json -Z no-trans',
-\ 'callback': 'ale_linters#rust#rustc#handle_rustc_errors',
+\ 'callback': 'ale_linters#rust#rustc#HandleRustcErrors',
\ 'output_stream': 'stderr',
\})