fix(victory-formats): remove redundant closure in Texture::new #427

Closed
github-bot wants to merge 1 commit from github-bot/gh-427 into main AGit
Owner

@⁠ashishdhillon on GitHub · 2026-11-26 18:17 UTC · original
ashishdhillon:fix/victory-formats-clippy-redundant-closure → main · +1 −1 · 1 files · 1 commits · closed without merging

Description

cargo clippy --manifest-path third_party/victory/Cargo.toml -p victory-formats --all-targets -- -D warnings failed on third_party/victory/crates/victory-formats/src/texture.rs:1050 with clippy::redundant_closure (Texture::build(desc, |d| Layout::new(d))).

Changes

  • third_party/victory/crates/victory-formats/src/texture.rs: Replaced |d| Layout::new(d) with Layout::new in Texture::new.

Verification

  • cargo clippy --manifest-path third_party/victory/Cargo.toml -p victory-formats --all-targets --locked -- -D warnings: passed (0 warnings)
  • cargo test --manifest-path third_party/victory/Cargo.toml -p victory-formats --locked: 30 passed, 0 failed (4 ignored: external files / benchmark)
  • (cd third_party/victory && cargo xtask policy): asset policy: 215 files ok
  • python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools: passed
  • python -m pytest tests/test_readme_sync.py -q: 9 passed, 1 skipped

AI-assisted: yes.

**@⁠ashishdhillon** on GitHub · 2026-11-26 18:17 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/427) `ashishdhillon:fix/victory-formats-clippy-redundant-closure` → `main` · +1 −1 · 1 files · 1 commits · closed without merging ## Description `cargo clippy --manifest-path third_party/victory/Cargo.toml -p victory-formats --all-targets -- -D warnings` failed on `third_party/victory/crates/victory-formats/src/texture.rs:1050` with `clippy::redundant_closure` (`Texture::build(desc, |d| Layout::new(d))`). ## Changes - `third_party/victory/crates/victory-formats/src/texture.rs`: Replaced `|d| Layout::new(d)` with `Layout::new` in `Texture::new`. ## Verification - `cargo clippy --manifest-path third_party/victory/Cargo.toml -p victory-formats --all-targets --locked -- -D warnings`: passed (0 warnings) - `cargo test --manifest-path third_party/victory/Cargo.toml -p victory-formats --locked`: 30 passed, 0 failed (4 ignored: external files / benchmark) - `(cd third_party/victory && cargo xtask policy)`: `asset policy: 215 files ok` - `python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools`: passed - `python -m pytest tests/test_readme_sync.py -q`: 9 passed, 1 skipped AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:22:09 +00:00
github-bot closed this pull request 2026-11-27 00:35:53 +00:00
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-26 23:08 UTC · original

Closing after #454 moved third_party/victory to the Vice-Tay base (TaynanGT/Vice-Tay a252348).

Texture::new in victory-formats no longer has that closure on the new base.

Thanks for the work. If you measure a gain on the new base, a new PR against main is welcome.

🤖 Closed by Claude Code on behalf of the maintainer

**@⁠LooperSalty** on GitHub · 2026-11-26 23:08 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/427#issuecomment-7205295895) Closing after #454 moved `third_party/victory` to the Vice-Tay base (TaynanGT/Vice-Tay a252348). `Texture::new` in `victory-formats` no longer has that closure on the new base. Thanks for the work. If you measure a gain on the new base, a new PR against `main` is welcome. _🤖 Closed by [Claude Code](https://claude.com/claude-code) on behalf of the maintainer_

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.