Skip to content

Commit 5edb9b3

Browse files
Fix CI pipeline build failures by resolving dependencies and typing errors.
- Added missing `hex` crate dependency to `techscript_stdlib` and `techscript_packager`. - Fixed type signature for `FileOptions` in `techscript_packager` by removing deprecated generic argument. - Fixed borrow checker compilation error in `techscript_optimizer` by cloning `self.manager.stats`. Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com>
1 parent c8609da commit 5edb9b3

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/optimizer/src/pipeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl OptimizationPipeline {
7474
}
7575

7676
if overall_changed {
77-
OptimizationResult::changed(self.manager.stats)
77+
OptimizationResult::changed(self.manager.stats.clone())
7878
} else {
7979
OptimizationResult::unchanged("pipeline")
8080
}

stdlib/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ printpdf = "0.12"
3535
uuid = { version = "1", features = ["v4"] }
3636
rustls = { version = "0.23", optional = true }
3737
tokio = { version = "1", features = ["rt", "macros", "sync", "time"], optional = true }
38+
hex = "0.4.3"

tools/packager/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ fn package_vsix(root_dir: &Path, dest_vsix: &Path, version: &str) -> anyhow::Res
328328

329329
let file = File::create(dest_vsix)?;
330330
let mut zip = ZipWriter::new(file);
331-
let options: FileOptions<()> =
331+
let options: FileOptions =
332332
FileOptions::default().compression_method(zip::CompressionMethod::Deflated);
333333

334334
zip.start_file("[Content_Types].xml", options)?;
@@ -404,7 +404,7 @@ fn package_vsix(root_dir: &Path, dest_vsix: &Path, version: &str) -> anyhow::Res
404404
fn zip_release_folder(release_dir: &Path, dst_zip: &Path) -> anyhow::Result<()> {
405405
let file = File::create(dst_zip)?;
406406
let mut zip = ZipWriter::new(file);
407-
let options: FileOptions<()> =
407+
let options: FileOptions =
408408
FileOptions::default().compression_method(zip::CompressionMethod::Deflated);
409409

410410
let folders = ["docs", "examples", "tools", "runtime"];
@@ -442,7 +442,7 @@ fn zip_release_folder(release_dir: &Path, dst_zip: &Path) -> anyhow::Result<()>
442442
fn zip_sub_directory(src_dir: &Path, dst_zip: &Path) -> anyhow::Result<()> {
443443
let file = File::create(dst_zip)?;
444444
let mut zip = ZipWriter::new(file);
445-
let options: FileOptions<()> =
445+
let options: FileOptions =
446446
FileOptions::default().compression_method(zip::CompressionMethod::Deflated);
447447

448448
let files = walk_dir(src_dir)?;

0 commit comments

Comments
 (0)