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
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};