Fix miscellaneous compile warnings

This commit is contained in:
Max Brunsfeld
2020-01-08 20:47:41 -08:00
parent 8c932e649b
commit d95d3fa743
2 changed files with 3 additions and 4 deletions
-1
View File
@@ -16,7 +16,6 @@ use string::{CFString};
use core_foundation_sys::base::{kCFAllocatorDefault, Boolean};
use std::fmt;
use std::mem::MaybeUninit;
use std::ptr;
use std::path::{Path, PathBuf};
+3 -3
View File
@@ -12,9 +12,9 @@ pub type CGEventField = u32;
pub type CGKeyCode = u16;
pub type CGScrollEventUnit = u32;
/// Flags for events
///
/// [Ref](http://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-700/IOHIDSystem/IOKit/hidsystem/IOLLEvent.h)
// Flags for events
//
// [Ref](http://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-700/IOHIDSystem/IOKit/hidsystem/IOLLEvent.h)
bitflags! {
#[repr(C)]
pub struct CGEventFlags: u64 {