[GH-ISSUE #283] Bug: Mismatched types for Cairo context #203

Closed
opened 2026-02-28 14:31:20 +03:00 by kerem · 1 comment
Owner

Originally created by @rjzak on GitHub (Mar 15, 2022).
Original GitHub issue: https://github.com/jpochyla/psst/issues/283

Describe the bug

error[E0308]: mismatched types
   --> /home/rjzak/.cargo/git/checkouts/druid-64a54200c8cd3ebf/acfe799/druid-shell/src/backend/gtk/window.rs:523:58
    |
523 |                         let mut piet_context = Piet::new(&surface_context);
    |                                                          ^^^^^^^^^^^^^^^^ expected struct `cairo::context::Context`, found struct `cairo::Context`
    |
    = note: expected reference `&cairo::context::Context`
               found reference `&cairo::Context`
    = note: perhaps two different versions of crate `cairo` are being used?

To Reproduce
git pull
cargo build
Git commit hash: 338b602224

Expected behavior
Clean build

Screenshots
See above for pasted output

Environment

  • OS: Linux
  • Version: Ubuntu 20.04, Kernel 5.4.0-100-generic

Additional context
Add any other context about the problem here.

Originally created by @rjzak on GitHub (Mar 15, 2022). Original GitHub issue: https://github.com/jpochyla/psst/issues/283 **Describe the bug** ``` error[E0308]: mismatched types --> /home/rjzak/.cargo/git/checkouts/druid-64a54200c8cd3ebf/acfe799/druid-shell/src/backend/gtk/window.rs:523:58 | 523 | let mut piet_context = Piet::new(&surface_context); | ^^^^^^^^^^^^^^^^ expected struct `cairo::context::Context`, found struct `cairo::Context` | = note: expected reference `&cairo::context::Context` found reference `&cairo::Context` = note: perhaps two different versions of crate `cairo` are being used? ``` **To Reproduce** `git pull` `cargo build` Git commit hash: 338b60222493f0b3eb19ba7d0ef6f0c540ed30a8 **Expected behavior** Clean build **Screenshots** See above for pasted output **Environment** - OS: Linux - Version: Ubuntu 20.04, Kernel 5.4.0-100-generic **Additional context** Add any other context about the problem here.
kerem 2026-02-28 14:31:20 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jpochyla commented on GitHub (Mar 15, 2022):

Hi @rjzak, sorry about that, should be fixed in master!

<!-- gh-comment-id:1068318293 --> @jpochyla commented on GitHub (Mar 15, 2022): Hi @rjzak, sorry about that, should be fixed in master!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#203
No description provided.