chore: Fix several style lints (#17488)

It's not comprehensive enough to start linting on `style` group, but
hey, it's a start.

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-09-06 11:58:39 +02:00 committed by GitHub
parent 93249fc82b
commit e6c1c51b37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
361 changed files with 3530 additions and 3587 deletions

View file

@ -89,7 +89,7 @@ async fn main() -> Result<()> {
let tar_output = Command::new("tar")
.current_dir(&output_dir)
.args(&["-czvf", "archive.tar.gz", "-C", "archive", "."])
.args(["-czvf", "archive.tar.gz", "-C", "archive", "."])
.output()
.context("failed to run tar")?;
if !tar_output.status.success() {
@ -122,7 +122,7 @@ async fn copy_extension_resources(
output_dir: &Path,
fs: Arc<dyn Fs>,
) -> Result<()> {
fs::create_dir_all(&output_dir).context("failed to create output dir")?;
fs::create_dir_all(output_dir).context("failed to create output dir")?;
let manifest_toml = toml::to_string(&manifest).context("failed to serialize manifest")?;
fs::write(output_dir.join("extension.toml"), &manifest_toml)
@ -144,8 +144,8 @@ async fn copy_extension_resources(
let mut grammar_filename = PathBuf::from(grammar_name.as_ref());
grammar_filename.set_extension("wasm");
fs::copy(
&source_grammars_dir.join(&grammar_filename),
&output_grammars_dir.join(&grammar_filename),
source_grammars_dir.join(&grammar_filename),
output_grammars_dir.join(&grammar_filename),
)
.with_context(|| format!("failed to copy grammar '{}'", grammar_filename.display()))?;
}