jwilm / racerd

Rust semantic analysis server powered by Racer
http://jwilm.github.io/racerd/libracerd/
Apache License 2.0
134 stars 24 forks source link

[Bug Fix] racerd not able to complete cargo crates #81

Closed kings-way closed 5 years ago

kings-way commented 5 years ago

Hi, @jwilm Sorry about the #80 that the fix is not right. I was about to learn Rust at that time, and I saw some code snippets like Session::new(..., None) from racer-rust/racer, so I just copy the snippets without fullly understanding of the code.

Actually, the second arg should be full path of the source file, otherwise racer will not return completions for cargo crates.

In addition, add 'dyn' to some code to get rid of the deprecated warnings

jwilm commented 5 years ago

Thanks again!