From c3ebe7bd9eb70952cdbdf8a0a8127533c493fe34 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 7 Feb 2017 21:17:03 +0000 Subject: Cover the Rust handler with some tests --- ale_linters/rust/cargo.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ale_linters/rust/cargo.vim') 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 " 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', \}) -- cgit v1.2.3