Skip to content

Fix fail to build#1054

Closed
radiantgurl wants to merge 1 commit into
linebender:mainfrom
radiantgurl:patch-1
Closed

Fix fail to build#1054
radiantgurl wants to merge 1 commit into
linebender:mainfrom
radiantgurl:patch-1

Conversation

@radiantgurl

Copy link
Copy Markdown

see wayvr-org/wayvr#532

error[E0308]: mismatched types
  --> /home/radiant/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/resvg-0.45.1/src/filter/iir_blur.rs:62:22
   |
62 |     gaussian_channel(data, &d, 0, buf);
   |     ---------------- ^^^^ expected `&mut [u8]`, found `&mut [Rgba<u8>]`
   |     |
   |     arguments to this function are incorrect
   |
   = note: expected mutable reference `&mut [u8]`
              found mutable reference `&mut [RGBA<u8>]`
note: function defined here
  --> /home/radiant/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/resvg-0.45.1/src/filter/iir_blur.rs:68:4
   |
68 | fn gaussian_channel(data: &mut [u8], d: &BlurData, channel: usize, buf: &mut [f64]) {
   |    ^^^^^^^^^^^^^^^^ ---------------

error[E0308]: mismatched types
  --> /home/radiant/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/resvg-0.45.1/src/filter/iir_blur.rs:63:22
   |
63 |     gaussian_channel(data, &d, 1, buf);
   |     ---------------- ^^^^ expected `&mut [u8]`, found `&mut [Rgba<u8>]`
   |     |
   |     arguments to this function are incorrect
   |
   = note: expected mutable reference `&mut [u8]`
              found mutable reference `&mut [RGBA<u8>]`
note: function defined here
  --> /home/radiant/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/resvg-0.46.0/src/filter/iir_blur.rs:68:4
   |
68 | fn gaussian_channel(data: &mut [u8], d: &BlurData, channel: usize, buf: &mut [f64]) {
   |    ^^^^^^^^^^^^^^^^ ---------------

error[E0308]: mismatched types
  --> /home/radiant/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/resvg-0.45.1/src/filter/iir_blur.rs:64:22
   |
64 |     gaussian_channel(data, &d, 2, buf);
   |     ---------------- ^^^^ expected `&mut [u8]`, found `&mut [Rgba<u8>]`
   |     |
   |     arguments to this function are incorrect
   |
   = note: expected mutable reference `&mut [u8]`
              found mutable reference `&mut [RGBA<u8>]`
note: function defined here
  --> /home/radiant/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/resvg-0.45.1/src/filter/iir_blur.rs:68:4
   |
68 | fn gaussian_channel(data: &mut [u8], d: &BlurData, channel: usize, buf: &mut [f64]) {
   |    ^^^^^^^^^^^^^^^^ ---------------

error[E0308]: mismatched types
  --> /home/radiant/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/resvg-0.45.1/src/filter/iir_blur.rs:65:22
   |
65 |     gaussian_channel(data, &d, 3, buf);
   |     ---------------- ^^^^ expected `&mut [u8]`, found `&mut [Rgba<u8>]`
   |     |
   |     arguments to this function are incorrect
   |
   = note: expected mutable reference `&mut [u8]`
              found mutable reference `&mut [RGBA<u8>]`
note: function defined here
  --> /home/radiant/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/resvg-0.45.1/src/filter/iir_blur.rs:68:4
   |
68 | fn gaussian_channel(data: &mut [u8], d: &BlurData, channel: usize, buf: &mut [f64]) {
   |    ^^^^^^^^^^^^^^^^ ---------------

A pull request must contain a meaningful improvement to the project.

@radiantgurl

Copy link
Copy Markdown
Author

Well, the GHA suggests that this issue may be from someplace else.

@Its-Just-Nans

Copy link
Copy Markdown
Contributor

Well, the GHA suggests that this issue may be from someplace else.

You have two resvg version

0.45.1 and 0.46.0

Is that normal ?

@LaurenzV

LaurenzV commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

It sounds like #1022, but I think was fixed upstream no? Maybe you are using an old nightly version of the Rust compiler?

@radiantgurl

Copy link
Copy Markdown
Author

Hi!
Thank you for the swift response, running rustup update solved the problem.

@radiantgurl radiantgurl closed this Jun 4, 2026
@radiantgurl radiantgurl deleted the patch-1 branch June 4, 2026 13:30
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.

3 participants