diff options
author | Miguel Madrid-MencĂa | 2023-01-27 15:43:46 +0000 |
---|---|---|
committer | GitHub | 2023-01-27 15:43:46 +0000 |
commit | d2d302433747ba04dc2fa541c4da9e878d4a5886 (patch) | |
tree | f0c76b6bc4a41e98ecb4c1d0b78525d4927a69e5 /helix-loader | |
parent | 4d548a0ee39c14ba54b672f6b57072cf306c11a9 (diff) |
Fix clippy 1.67 warnings (#5697)
Diffstat (limited to 'helix-loader')
-rw-r--r-- | helix-loader/src/config.rs | 2 | ||||
-rw-r--r-- | helix-loader/src/grammar.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/helix-loader/src/config.rs b/helix-loader/src/config.rs index a4c6dcbd..0f329d21 100644 --- a/helix-loader/src/config.rs +++ b/helix-loader/src/config.rs @@ -14,7 +14,7 @@ pub fn user_lang_config() -> Result<toml::Value, toml::de::Error> { .chain([crate::config_dir()].into_iter()) .map(|path| path.join("languages.toml")) .filter_map(|file| { - std::fs::read_to_string(&file) + std::fs::read_to_string(file) .map(|config| toml::from_str(&config)) .ok() }) diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs index 2aa92475..01c966c8 100644 --- a/helix-loader/src/grammar.rs +++ b/helix-loader/src/grammar.rs @@ -515,5 +515,5 @@ pub fn load_runtime_file(language: &str, filename: &str) -> Result<String, std:: .join("queries") .join(language) .join(filename); - std::fs::read_to_string(&path) + std::fs::read_to_string(path) } |