Give node_types a static lifetime.

This commit is contained in:
Nick Rolfe
2020-10-27 19:11:05 +00:00
parent 5484ff3dcf
commit a41c3e36f9

View File

@@ -1,7 +1,7 @@
use std::path::PathBuf;
pub struct Language<'a> {
pub struct Language {
pub name: String,
pub node_types: &'a str,
pub node_types: &'static str,
pub dbscheme_path: PathBuf,
}