fix(rust): make String clones more explicit
This commit is contained in:
parent
3d9f4d1bd3
commit
e749a97f9f
2 changed files with 3 additions and 3 deletions
|
|
@ -720,7 +720,7 @@ impl Loader {
|
|||
}
|
||||
|
||||
pub fn load_language_at_path_with_name(&self, mut config: CompileConfig) -> Result<Language> {
|
||||
let mut lib_name = config.name.to_string();
|
||||
let mut lib_name = config.name.clone();
|
||||
let language_fn_name = format!("tree_sitter_{}", config.name.replace('-', "_"));
|
||||
if self.debug_build {
|
||||
lib_name.push_str(".debug._");
|
||||
|
|
@ -1296,7 +1296,7 @@ impl Loader {
|
|||
|
||||
for file_type in &configuration.file_types {
|
||||
self.language_configuration_ids_by_file_type
|
||||
.entry(file_type.to_string())
|
||||
.entry(file_type.clone())
|
||||
.or_default()
|
||||
.push(self.language_configurations.len());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue