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

analysis: Call extra to_glib functions in array len transformation #1367

Merged
merged 1 commit into from Jun 16, 2022

Conversation

jf2048
Copy link
Member

@jf2048 jf2048 commented Jun 16, 2022

Insert the as_ref() calls before len() when the array parameter has trait bounds. Needed for gtk-rs/gtk-rs-core#708, fixes this error:

error[E0599]: no method named `len` found for type parameter `impl AsRef<std::path::Path>` in the current scope
   --> glib/src/auto/functions.rs:348:27
    |
348 |     let len = opsysstring.len() as isize;
    |                           ^^^ method not found in `impl AsRef<std::path::Path>`

Error source: https://github.com/gtk-rs/gtk-rs-core/runs/6910586265?check_suite_focus=true#step:15:81

@sdroege sdroege merged commit c8286d7 into gtk-rs:master Jun 16, 2022
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.

None yet

2 participants