Skip to content

Commit

Permalink
fix block2
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 committed Jan 9, 2025
1 parent 9134fc0 commit d79aec5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ appkit-nsworkspace-bindings = { path = "crates/macos-utils/appkit-nsworkspace-bi
async-trait = "0.1.74"
aws-types = "1.2.0"
base64 = "0.22.1"
block2 = "0.5.1"
bytes = "1.5.0"
bitflags = { version = "2.6.0", features = ["serde"] }
bstr = "1.1.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/fig_input_method/src/imk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ struct Ivars {
declare_class!(
struct MyInputController;

// - The superclass NSObject does not have any subclassing requirements.
// - The superclass IMKInputController does not have any subclassing requirements.
// - Interior mutability is a safe default.
// - `MyCustomObject` does not implement `Drop`.
// - `MyInputController` does not implement `Drop`.
unsafe impl ClassType for MyInputController {
type Super = IMKInputController;
type Mutability = InteriorMutable;
Expand Down
5 changes: 1 addition & 4 deletions crates/macos-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version.workspace = true
license.workspace = true

[target.'cfg(target_os = "macos")'.dependencies]
block = "0.1.6"
block2.workspace = true
core-graphics.workspace = true
core-foundation.workspace = true
cocoa.workspace = true
Expand Down Expand Up @@ -42,6 +42,3 @@ appkit-nsworkspace-bindings.workspace = true
tracing.workspace = true
tokio.workspace = true
nix.workspace = true

[dependencies]
block2 = "0.5.1"
7 changes: 5 additions & 2 deletions crates/macos-utils/src/window_server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use core_foundation::string::{
};
use dashmap::DashMap;
use flume::Sender;
use objc2::mutability::InteriorMutable;
use objc2::rc::{
Allocated,
Retained,
Expand All @@ -41,7 +42,6 @@ use objc2::{
DeclaredClass,
declare_class,
msg_send_id,
mutability,
sel,
};
use objc2_app_kit::{
Expand Down Expand Up @@ -213,9 +213,12 @@ pub struct Ivars {
declare_class! {
pub struct ObserverClass;

// - The superclass NSObject does not have any subclassing requirements.
// - Interior mutability is a safe default.
// - `ObserverClass` does not implement `Drop`.
unsafe impl ClassType for ObserverClass {
type Super = NSObject;
type Mutability = mutability::InteriorMutable;
type Mutability = InteriorMutable;
const NAME: &'static str = OBSERVER_CLASS_NAME;
}

Expand Down

0 comments on commit d79aec5

Please sign in to comment.