Avoid loading Rust grammar in zed tests

This commit is contained in:
Antonio Scandurra 2021-10-05 15:43:57 +02:00
parent 2280c75103
commit 7a05461c50
2 changed files with 3 additions and 5 deletions

View file

@ -14,7 +14,7 @@ pub fn build_language_registry() -> LanguageRegistry {
languages
}
pub fn rust() -> Language {
fn rust() -> Language {
let grammar = tree_sitter_rust::language();
let rust_config =
toml::from_slice(&LanguageDir::get("rust/config.toml").unwrap().data).unwrap();