-
-
Notifications
You must be signed in to change notification settings - Fork 131
gio: Use OwnedSocket
/ BorrowedSocket
for Windows APIs on GSocket
#1699
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
Conversation
f12700c
to
04d17cd
Compare
CI failure is a false positive compiler error with latest nightly... |
04d17cd
to
7022a50
Compare
self.to_raw_none(), | ||
mime_type.as_ptr(), | ||
&data_ptr, | ||
&mut data_ptr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually not a false positive. That code was completely broken
87fcc32
to
cfd7fef
Compare
CI finally passing |
|
||
let n_channels = if has_alpha { 4 } else { 3 }; | ||
let last_row_len = width * ((n_channels * bits_per_sample + 7) / 8); | ||
let last_row_len = width * (n_channels * bits_per_sample).div_ceil(8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is missing a 7 isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a +7 before and that change seemed unrelated to clippy fixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That (x + 7) / 8
is the same as dividing by 8 and rounding up (which is what div_ceil()
does)
CC @A6GibKm