Skip to content

Commit

Permalink
fixing linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorBach committed Oct 20, 2018
1 parent a6933a7 commit c7f0a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/quartz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct Capturer {
}

impl Capturer {
pub fn new(display: Display) -> io::Result<Capturer> {
pub fn new(display: &Display) -> io::Result<Capturer> {
let frame = Arc::new(Mutex::new(None));

let f = frame.clone();
Expand Down
4 changes: 2 additions & 2 deletions src/quartz/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ macro_rules! pixel_format {
}
}

pub const SURFACE_LOCK_READ_ONLY: u32 = 0x00000001;
pub const SURFACE_LOCK_AVOID_SYNC: u32 = 0x00000002;
pub const SURFACE_LOCK_READ_ONLY: u32 = 0x0000_0001;
pub const SURFACE_LOCK_AVOID_SYNC: u32 = 0x0000_0002;

pub fn cfbool(x: bool) -> CFBooleanRef {
unsafe {
Expand Down

0 comments on commit c7f0a7e

Please sign in to comment.