@@ -28,8 +28,8 @@ fn test_treesitter_indent(file_name: &str, lang_scope: &str) {
29 let mut config_file = test_dir;
29 let mut config_file = test_dir;
30 config_file.push("languages.toml");
30 config_file.push("languages.toml");
31− let config = std::fs::read(config_file).unwrap();
31+ let config = std::fs::read_to_string(config_file).unwrap();
32− let config = toml::from_slice(&config).unwrap();
32+ let config = toml::from_str(&config).unwrap();
33 let loader = Loader::new(config);
33 let loader = Loader::new(config);
35 // set runtime path so we can find the queries
35 // set runtime path so we can find the queries