chore: cargo fmt on the stub binary

This commit is contained in:
David Wendt 2022-04-01 21:04:04 -06:00 committed by Mike Welsh
parent 399614f598
commit b825bf6e34
1 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
use objc::class;
use objc::declare::ClassDecl;
use objc::runtime::Protocol;
use objc::class;
fn extension_class() {
let mut ruffle = ClassDecl::new("RuffleWebExtension", class!(NSObject)).unwrap();
@ -10,15 +10,15 @@ fn extension_class() {
ruffle.register();
}
#[link(name="Foundation", kind="framework")]
extern {
#[link(name = "Foundation", kind = "framework")]
extern "C" {
/// Private function used as the entry point of all app extensions.
///
///
/// In Obj-C/Swift apps, a linker flag is used to set this as the entry
/// point, and thus app extensions are mainless. However, we need a main fn
/// to register our Obj-C classes, so we have to call this after we're
/// done.
///
///
/// This is almost certainly a "private API" as per App Store guidelines,
/// but it's part of Foundation (at least after Sierra) and all App
/// Extensions reference it directly. So it's probably fine to call this.
@ -29,4 +29,4 @@ fn main() {
extension_class();
unsafe { NSExtensionMain() }
}
}