chore: fix new clippy lints (#4557)

This commit is contained in:
David Knaack
2022-11-05 12:40:46 +01:00
committed by GitHub
parent 9b64f518c9
commit 6e38683c89
51 changed files with 324 additions and 324 deletions
+9 -9
View File
@@ -119,7 +119,7 @@ mod tests {
"currentContext": "starship"
});
let mut docker_config = File::create(&cfg_file)?;
let mut docker_config = File::create(cfg_file)?;
docker_config.write_all(config_content.to_string().as_bytes())?;
docker_config.sync_all()?;
@@ -148,7 +148,7 @@ mod tests {
"currentContext": "starship"
});
let mut docker_config = File::create(&cfg_file)?;
let mut docker_config = File::create(cfg_file)?;
docker_config.write_all(config_content.to_string().as_bytes())?;
docker_config.sync_all()?;
@@ -177,7 +177,7 @@ mod tests {
"currentContext": "starship"
});
let mut docker_config = File::create(&cfg_file)?;
let mut docker_config = File::create(cfg_file)?;
docker_config.write_all(config_content.to_string().as_bytes())?;
docker_config.sync_all()?;
@@ -203,7 +203,7 @@ mod tests {
"currentContext": "starship"
});
let mut docker_config = File::create(&cfg_file)?;
let mut docker_config = File::create(cfg_file)?;
docker_config.write_all(config_content.to_string().as_bytes())?;
docker_config.sync_all()?;
@@ -227,7 +227,7 @@ mod tests {
"currentContext": "starship"
});
let mut docker_config = File::create(&cfg_file)?;
let mut docker_config = File::create(cfg_file)?;
docker_config.write_all(config_content.to_string().as_bytes())?;
docker_config.sync_all()?;
@@ -253,7 +253,7 @@ mod tests {
let config_content = "not valid json";
let mut docker_config = File::create(&cfg_file)?;
let mut docker_config = File::create(cfg_file)?;
docker_config.write_all(config_content.to_string().as_bytes())?;
docker_config.sync_all()?;
@@ -339,7 +339,7 @@ mod tests {
"currentContext": "starship"
});
let mut docker_config = File::create(&cfg_file)?;
let mut docker_config = File::create(cfg_file)?;
docker_config.write_all(config_content.to_string().as_bytes())?;
docker_config.sync_all()?;
@@ -368,7 +368,7 @@ mod tests {
"currentContext": "starship"
});
let mut docker_config = File::create(&cfg_file)?;
let mut docker_config = File::create(cfg_file)?;
docker_config.write_all(config_content.to_string().as_bytes())?;
docker_config.sync_all()?;
@@ -400,7 +400,7 @@ mod tests {
"currentContext": "starship"
});
let mut docker_config = File::create(&cfg_file)?;
let mut docker_config = File::create(cfg_file)?;
docker_config.write_all(config_content.to_string().as_bytes())?;
docker_config.sync_all()?;