summaryrefslogtreecommitdiff
path: root/ale_linters/rust/cargo.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-02-07 21:17:03 +0000
committerw0rp <devw0rp@gmail.com>2017-02-07 21:17:10 +0000
commitc3ebe7bd9eb70952cdbdf8a0a8127533c493fe34 (patch)
tree91e706ee6dbf29dc9040ff01875aa2ef6d8d1344 /ale_linters/rust/cargo.vim
parent472631573ed46f8750fd07906068ccf14d341c9b (diff)
downloadale-c3ebe7bd9eb70952cdbdf8a0a8127533c493fe34.zip
Cover the Rust handler with some tests
Diffstat (limited to 'ale_linters/rust/cargo.vim')
-rw-r--r--ale_linters/rust/cargo.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/ale_linters/rust/cargo.vim b/ale_linters/rust/cargo.vim
index 8c782656..7f821d2c 100644
--- a/ale_linters/rust/cargo.vim
+++ b/ale_linters/rust/cargo.vim
@@ -1,7 +1,6 @@
" Author: Daniel Schemala <istjanichtzufassen@gmail.com>
" Description: rustc invoked by cargo for rust files
-
function! ale_linters#rust#cargo#GetCargoExecutable(bufnr) abort
if ale#util#FindNearestFile(a:bufnr, 'Cargo.toml') !=# ''
return 'cargo'
@@ -16,6 +15,6 @@ call ale#linter#Define('rust', {
\ 'name': 'cargo',
\ 'executable_callback': 'ale_linters#rust#cargo#GetCargoExecutable',
\ 'command': 'cargo build --message-format=json -q',
-\ 'callback': 'ale_linters#rust#rustc#HandleRustcErrors',
+\ 'callback': 'ale#handlers#rust#HandleRustErrors',
\ 'output_stream': 'stdout',
\})