fix formatting and edition (why can't we use 2024..?)

This commit is contained in:
Matt Yan 2025-03-01 18:40:38 +09:00 committed by Siyuan Yan
parent ce8e35ae77
commit 8c8753c693
4 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,6 @@ on:
push:
branches: [master]
paths:
- 'ci/**'
- 'tools/build-examples/**'
- 'examples/**'

View File

@ -1,7 +1,7 @@
[package]
name = "build-examples"
version = "0.1.0"
edition = "2024"
edition = "2021"
publish = false
[dependencies]

View File

@ -5,7 +5,6 @@ use std::process::ExitCode;
use build_examples::{get_latest_wasm_opt_version, is_wasm_opt_outdated, NO_TRUNK_EXAMPLES};
use regex::Regex;
fn main() -> ExitCode {
// Must be run from root of the repo
let examples_dir = Path::new("examples");

View File

@ -2,7 +2,7 @@ use std::path::Path;
use std::process::{Command, ExitCode};
use std::{env, fs};
use build_examples::{NO_TRUNK_EXAMPLES, get_latest_wasm_opt_version, is_wasm_opt_outdated};
use build_examples::{get_latest_wasm_opt_version, is_wasm_opt_outdated, NO_TRUNK_EXAMPLES};
fn main() -> ExitCode {
// Must be run from root of the repo: