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

Remove unused objc_exception dependency #303

Merged
merged 2 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ paste = "1"

[dependencies.objc]
version = "0.2.4"
features = ["objc_exception"]

[dev-dependencies]
cocoa = "0.24.0"
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@

<p align="center">Unsafe Rust bindings for the Metal 3D Graphics API.</p>

## Documentation

Note that [docs.rs](docs.rs) will fail to build the (albeit limited) documentation for this crate!
They build in a Linux container, but of course this will only compile on MacOS.

Please build the documentation yourself with `cargo docs`.

## Examples

The [examples](/examples) directory highlights different ways of using the Metal graphics API for rendering
Expand Down
3 changes: 2 additions & 1 deletion src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use super::*;
use block::{Block, RcBlock};
use std::mem;
use std::ptr;

#[cfg(feature = "dispatch_queue")]
use dispatch;
Expand Down Expand Up @@ -63,7 +64,7 @@ impl SharedEventRef {
*mut BlockBase<(&SharedEventRef, u64), ()>,
>(block);
(*block).flags |= BLOCK_HAS_SIGNATURE | BLOCK_HAS_COPY_DISPOSE;
(*block).extra = &BLOCK_EXTRA;
(*block).extra = ptr::addr_of!(BLOCK_EXTRA);
let () = msg_send![self, notifyListener:listener atValue:value block:block];
}

Expand Down
Loading