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:
parent
93249fc82b
commit
e6c1c51b37
361 changed files with 3530 additions and 3587 deletions
|
@ -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()))?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue