Skip to content

Commit 26b8e49

Browse files
committed
Merge pull request #1 from alexcrichton/libc-time-t
Prefer libc::time_t over std::*::time_t
2 parents cb76280 + e62c977 commit 26b8e49

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/file.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
use std::os::unix::raw::time_t;
2-
3-
use ::libc::{c_void,c_int,c_char,c_uchar,c_ulong,size_t};
1+
use ::libc::{c_void,c_int,c_char,c_uchar,c_ulong,size_t,time_t};
42

53
// TODO: should be *const c_char
64
pub const GP_MIME_WAV: &'static [u8] = b"audio/wav\0";

src/filesys.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// exports from gphoto2-filesys.h
22

3-
use std::os::unix::raw::time_t;
4-
5-
use ::libc::{c_int,c_char};
3+
use ::libc::{c_int,c_char,time_t};
64

75
#[repr(C)]
86
pub struct CameraStorageInformation {

0 commit comments

Comments
 (0)