-
Notifications
You must be signed in to change notification settings - Fork 228
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
Added missing macOS 10.6+ IOSurface functions #459
Conversation
@@ -143,7 +149,7 @@ impl IOSurface { | |||
let error_msg = error_msg.to_string_lossy(); | |||
// This will only actually leak memory if error_msg is a `Cow::Owned`, which | |||
// will only happen if the platform gives us invalid unicode. | |||
panic!(error_msg.leak()); | |||
panic!("{}", error_msg.leak()); |
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 not relevant to the PR itself, but fixes a warning at compile time.
@bors-servo r+ |
📌 Commit c127f49 has been approved by |
Added missing macOS 10.6+ IOSurface functions This adds a few `sys` entry points for IOSurface functions. I also made those public, so that code outside the IOSurface module can call and use them. I didn't add "rusty" wrappers as most of these functions are likely to be used in unsafe contexts anyway. I limited this to all functions supported in macOS 10.6.
💥 Test timed out |
@bors-servo r+ |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit c127f49 has been approved by |
☀️ Test successful - checks-travis |
This adds a few
sys
entry points for IOSurface functions.I also made those public, so that code outside the IOSurface module can call and use them. I didn't add "rusty" wrappers as most of these functions are likely to be used in unsafe contexts anyway.
I limited this to all functions supported in macOS 10.6.