use .to_owned instead of .to_string for &str's

This commit is contained in:
2024-12-27 22:35:42 -05:00
parent ad8c6a97c5
commit 4a031d01e9
5 changed files with 43 additions and 49 deletions

View File

@ -111,4 +111,8 @@ pub fn config_file() -> Option<PathBuf> {
let mut config_file = config_dir()?;
config_file.push("config.luau");
config_file.is_valid_file_or_create(DEFAULT_CONFIG_CONTENT.as_bytes())
}
pub fn none() -> Option<PathBuf> {
None
}