Migrate to 2018 edition. (#924)
* Migrate to 2018 edition. * Use impl Iterator at one site. * Fix more rust 2018 idioms.
This commit is contained in:
parent
2e0bbc091f
commit
f879bca21c
71 changed files with 411 additions and 436 deletions
|
|
@ -3,20 +3,20 @@ use std::collections::HashMap;
|
|||
use objc::declare::ClassDecl;
|
||||
use objc::runtime::{BOOL, Class, NO, Object, Sel, YES};
|
||||
|
||||
use event::{
|
||||
use crate::event::{
|
||||
DeviceId as RootDeviceId,
|
||||
Event,
|
||||
Touch,
|
||||
TouchPhase,
|
||||
WindowEvent
|
||||
};
|
||||
use platform::ios::MonitorHandleExtIOS;
|
||||
use window::{WindowAttributes, WindowId as RootWindowId};
|
||||
use crate::platform::ios::MonitorHandleExtIOS;
|
||||
use crate::window::{WindowAttributes, WindowId as RootWindowId};
|
||||
|
||||
use platform_impl::platform::app_state::AppState;
|
||||
use platform_impl::platform::DeviceId;
|
||||
use platform_impl::platform::event_loop;
|
||||
use platform_impl::platform::ffi::{
|
||||
use crate::platform_impl::platform::app_state::AppState;
|
||||
use crate::platform_impl::platform::DeviceId;
|
||||
use crate::platform_impl::platform::event_loop;
|
||||
use crate::platform_impl::platform::ffi::{
|
||||
id,
|
||||
nil,
|
||||
CGFloat,
|
||||
|
|
@ -25,7 +25,7 @@ use platform_impl::platform::ffi::{
|
|||
UIInterfaceOrientationMask,
|
||||
UITouchPhase,
|
||||
};
|
||||
use platform_impl::platform::window::{PlatformSpecificWindowBuilderAttributes};
|
||||
use crate::platform_impl::platform::window::{PlatformSpecificWindowBuilderAttributes};
|
||||
|
||||
// requires main thread
|
||||
unsafe fn get_view_class(root_view_class: &'static Class) -> &'static Class {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue