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

Fix socket.rs build with --features dox #178

Merged
merged 1 commit into from Dec 17, 2018

Conversation

Projects
None yet
3 participants
@sdroege
Copy link
Member

sdroege commented Dec 17, 2018

error[E0605]: non-primitive cast: i32 as socket::RawSocket
--> src/socket.rs:64:13
|
64 | ffi::g_socket_get_fd(self.to_glib_none().0) as _
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: an as expression can only be used to convert between primitive types. Consider using the From trait


See #175 (comment)

Fix socket.rs build with --features dox
error[E0605]: non-primitive cast: `i32` as `socket::RawSocket`
  --> src/socket.rs:64:13
   |
64 |             ffi::g_socket_get_fd(self.to_glib_none().0) as _
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait
@GuillaumeGomez

This comment has been minimized.

Copy link
Member

GuillaumeGomez commented Dec 17, 2018

Thanks!

@EPashkin

This comment has been minimized.

Copy link
Member

EPashkin commented Dec 17, 2018

@sdroege Thanks, 👍

@GuillaumeGomez GuillaumeGomez merged commit 5b0c285 into gtk-rs:master Dec 17, 2018

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

vhdirk pushed a commit to vhdirk/gio-rs that referenced this pull request Jan 16, 2019

Merge pull request gtk-rs#178 from sdroege/socket-dox
Fix socket.rs build with --features dox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.