Skip to content

Commit

Permalink
fix(deps): update rust crate objc2 to 0.5.0 (#528)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] committed Mar 1, 2024
1 parent 69b7b99 commit 2d0302d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions backend/Cargo.lock

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

2 changes: 1 addition & 1 deletion backend/tauri-plugin-deep-link/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ windows-sys = { version = "0.52.0", features = [
winreg = "0.52.0"

[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.4.1"
objc2 = "0.5.0"
8 changes: 5 additions & 3 deletions backend/tauri-plugin-deep-link/src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ use std::{

use objc2::{
class, declare_class, msg_send, msg_send_id,
mutability::Immutable,
mutability::InteriorMutable,
rc::Id,
runtime::{AnyObject, NSObject},
sel, ClassType,
sel, ClassType, DeclaredClass,
};
use once_cell::sync::OnceCell;

Expand Down Expand Up @@ -64,10 +64,12 @@ declare_class!(

unsafe impl ClassType for Handler {
type Super = NSObject;
type Mutability = Immutable;
type Mutability = InteriorMutable;
const NAME: &'static str = "TauriPluginDeepLinkHandler";
}

impl DeclaredClass for Handler {}

unsafe impl Handler {
#[method(handleEvent:withReplyEvent:)]
fn handle_event(&self, event: *mut AnyObject, _replace: *const AnyObject) {
Expand Down

0 comments on commit 2d0302d

Please sign in to comment.