Skip to content

Conversation

@ZR233
Copy link
Member

@ZR233 ZR233 commented Dec 18, 2025

  • Remove unused schema generation code from QEMU module
  • Fix function pointer usage in build module normalization
  • Simplify conditional logic in U-Boot TFTP server check
  • Remove unused imports and dead code
  • Bump version to 0.8.5

- Remove unused schema generation code from QEMU module
- Fix function pointer usage in build module normalization
- Simplify conditional logic in U-Boot TFTP server check
- Remove unused imports and dead code
- Bump version to 0.8.5
Copilot AI review requested due to automatic review settings December 18, 2025 13:24
@ZR233 ZR233 merged commit 2a7e442 into main Dec 18, 2025
4 checks passed
@ZR233 ZR233 deleted the dev branch December 18, 2025 13:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs code cleanup by removing unused schema generation logic, simplifying conditional expressions, and bumping the version to 0.8.5. The changes focus on improving code maintainability without altering functionality.

  • Removed unused schema generation code and import from QEMU module
  • Simplified nested conditional logic in U-Boot TFTP server check using if let chain syntax
  • Updated function pointer usage in build module path normalization
  • Version bump from 0.8.4 to 0.8.5

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ostool/src/run/qemu.rs Removed unused default_schema_by_init import and dead schema generation code, replaced with info log
ostool/src/run/uboot.rs Simplified nested if statements into a single if let chain for TFTP server conditional
ostool/src/build/mod.rs Updated function pointer syntax for path normalization in map calls
ostool/Cargo.toml Bumped package version from 0.8.4 to 0.8.5
Cargo.lock Updated lockfile to reflect new version 0.8.5

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

.bin_dir
.as_ref()
.map(|d| normalize(d))
.map(normalize)
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent function pointer syntax: Line 88 uses map(&normalize) while line 96 uses map(normalize). Both approaches work in Rust, but for consistency within the same code block, they should use the same style. Consider using the same syntax for both calls.

Suggested change
.map(normalize)
.map(&normalize)

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants