diff options
author | w0rp <devw0rp@gmail.com> | 2017-04-17 23:29:02 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-04-17 23:29:02 +0100 |
commit | e237add9fdec64c80ed57f383e2b73464fb4b43d (patch) | |
tree | c7a958526e3048c3457359de435fd8ee83ab07b6 /ale_linters/rust | |
parent | 6c762237cea0dd29fc95d3cbbb9787213f581ef3 (diff) | |
download | ale-e237add9fdec64c80ed57f383e2b73464fb4b43d.zip |
Move path functions to their own file
Diffstat (limited to 'ale_linters/rust')
-rw-r--r-- | ale_linters/rust/cargo.vim | 2 | ||||
-rw-r--r-- | ale_linters/rust/rustc.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/rust/cargo.vim b/ale_linters/rust/cargo.vim index 8dbc0bd0..32c09a58 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#util#FindNearestFile(a:bufnr, 'Cargo.toml') !=# '' + if ale#path#FindNearestFile(a:bufnr, 'Cargo.toml') !=# '' 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 1d080b98..73c99cd9 100644 --- a/ale_linters/rust/rustc.vim +++ b/ale_linters/rust/rustc.vim @@ -5,7 +5,7 @@ function! ale_linters#rust#rustc#RustcCommand(buffer_number) abort " Try to guess the library search path. If the project is managed by cargo, " it's usually <project root>/target/debug/deps/ or " <project root>/target/release/deps/ - let l:cargo_file = ale#util#FindNearestFile(a:buffer_number, 'Cargo.toml') + let l:cargo_file = ale#path#FindNearestFile(a:buffer_number, 'Cargo.toml') if l:cargo_file !=# '' let l:project_root = fnamemodify(l:cargo_file, ':h') |