[PR #1957] [MERGED] fix(rust): Update palette crate to 0.7 for Fedora compatibility #2756

Closed
opened 2026-01-29 17:23:46 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/1957
Author: @cfsmp3
Created: 1/2/2026
Status: Merged
Merged: 1/2/2026
Merged by: @cfsmp3

Base: masterHead: fix/palette-crate-fedora


📝 Commits (1)

  • ad2ee70 fix(rust): Update palette crate to 0.7 for Fedora compatibility

📊 Changes

3 files changed (+42 additions, -28 deletions)

View changed files

📝 src/rust/Cargo.lock (+40 -26)
📝 src/rust/Cargo.toml (+1 -1)
📝 src/rust/src/hardsubx/imgops.rs (+1 -1)

📄 Description

Summary

Fixes build failure on Fedora reported in #1954.

Problem

The palette crate renamed to_positive_degrees() to into_positive_degrees() in version 0.7.0. Fedora uses system-packaged Rust crates, which are at newer versions than what we had pinned in Cargo.toml.

error[E0599]: no method named `to_positive_degrees` found for struct `RgbHue<T>` in the current scope
  --> src/hardsubx/imgops.rs:15:22
   |
15 |     *H = hsv_rep.hue.to_positive_degrees();
   |                      ^^^^^^^^^^^^^^^^^^^

Changes

  • Update palette dependency from 0.6.1 to 0.7
  • Change method call from to_positive_degrees() to into_positive_degrees()

Test plan

  • Build succeeds locally
  • Fedora build should now succeed

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CCExtractor/ccextractor/pull/1957 **Author:** [@cfsmp3](https://github.com/cfsmp3) **Created:** 1/2/2026 **Status:** ✅ Merged **Merged:** 1/2/2026 **Merged by:** [@cfsmp3](https://github.com/cfsmp3) **Base:** `master` ← **Head:** `fix/palette-crate-fedora` --- ### 📝 Commits (1) - [`ad2ee70`](https://github.com/CCExtractor/ccextractor/commit/ad2ee70743fcecc5d390f540f7d45334a6214d28) fix(rust): Update palette crate to 0.7 for Fedora compatibility ### 📊 Changes **3 files changed** (+42 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `src/rust/Cargo.lock` (+40 -26) 📝 `src/rust/Cargo.toml` (+1 -1) 📝 `src/rust/src/hardsubx/imgops.rs` (+1 -1) </details> ### 📄 Description ## Summary Fixes build failure on Fedora reported in #1954. ## Problem The `palette` crate renamed `to_positive_degrees()` to `into_positive_degrees()` in version 0.7.0. Fedora uses system-packaged Rust crates, which are at newer versions than what we had pinned in Cargo.toml. ``` error[E0599]: no method named `to_positive_degrees` found for struct `RgbHue<T>` in the current scope --> src/hardsubx/imgops.rs:15:22 | 15 | *H = hsv_rep.hue.to_positive_degrees(); | ^^^^^^^^^^^^^^^^^^^ ``` ## Changes - Update palette dependency from 0.6.1 to 0.7 - Change method call from `to_positive_degrees()` to `into_positive_degrees()` ## Test plan - [x] Build succeeds locally - [ ] Fedora build should now succeed 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 17:23:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2756