mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 11:01:40 +03:00
Add missing block.copy() (#10496)
https://crates.io/crates/block implies this is necessary, and we're still seeing segfaults in this method, so... Release Notes: - Fixed a panic when installing the CLI / registering for the zed:// protocol
This commit is contained in:
parent
ba9c5929af
commit
e64ecdc9ab
@ -570,6 +570,7 @@ impl Platform for MacPlatform {
|
||||
let _ = done_tx.send(result);
|
||||
}
|
||||
});
|
||||
let block = block.copy();
|
||||
let _: () = msg_send![workspace, setDefaultApplicationAtURL: app toOpenURLsWithScheme: scheme completionHandler: block];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user