Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update image.rs #122

Closed
wants to merge 1 commit into from
Closed

Update image.rs #122

wants to merge 1 commit into from

Conversation

llgoer
Copy link

@llgoer llgoer commented Jun 8, 2021

fix error

warning: use of deprecated associated function `image::DynamicImage::to_rgba`: replaced by `to_rgba8`
  --> dev/examples/image.rs:41:84
   |
41 |     let mut image = DynamicImage::new_rgba8(glyphs_width + 40, glyphs_height + 40).to_rgba();
   |                                                                                    ^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: 1 warning emitted

fix error ```
warning: use of deprecated associated function `image::DynamicImage::to_rgba`: replaced by `to_rgba8`
  --> dev/examples/image.rs:41:84
   |
41 |     let mut image = DynamicImage::new_rgba8(glyphs_width + 40, glyphs_height + 40).to_rgba();
   |                                                                                    ^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: 1 warning emitted

```
bnjbvr added a commit to bnjbvr/rusttype that referenced this pull request Jun 9, 2021
Also addresses a few Rust warnings in tests. With redox-os#122, all the code,
tests and examples would compile without any warnings.
@hardBSDk
Copy link
Member

hardBSDk commented Mar 8, 2023

Redox moved to GitLab years ago, thus if you still want to merge it, move this pull request to there.

If you still want to contribute to Redox, talk with us in the Matrix chat.

@hardBSDk hardBSDk closed this Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants