Remove extern crate statements (#3310)

This commit is contained in:
daxpedda 2023-12-25 09:25:09 +01:00 committed by GitHub
parent 61a873d79a
commit 28a811bbba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 54 additions and 26 deletions

View file

@ -78,7 +78,7 @@ impl<T: 'static> EventLoopWindowTarget<T> {
pub(crate) fn exit(&self) {
// https://developer.apple.com/library/archive/qa/qa1561/_index.html
// it is not possible to quit an iOS app gracefully and programatically
warn!("`ControlFlow::Exit` ignored on iOS");
log::warn!("`ControlFlow::Exit` ignored on iOS");
}
pub(crate) fn exiting(&self) -> bool {

View file

@ -39,7 +39,7 @@ extern_methods!(
}
);
bitflags! {
bitflags::bitflags! {
#[derive(Clone, Copy)]
pub struct UIInterfaceOrientationMask: NSUInteger {
const Portrait = 1 << 1;

View file

@ -3,6 +3,7 @@
use std::collections::VecDeque;
use icrate::Foundation::{CGFloat, CGPoint, CGRect, CGSize, MainThreadBound, MainThreadMarker};
use log::{debug, warn};
use objc2::rc::Id;
use objc2::runtime::AnyObject;
use objc2::{class, msg_send};