libc up / 안쓰는부분 정리.
This commit is contained in:
parent
69c5eacda7
commit
45c3761fd9
|
@ -7,7 +7,7 @@ edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libc = { version = "0.2", default-features = false }
|
libc = { version = "0.2", default-features = false }
|
||||||
libc-print = "0.1.22"
|
libc-print = "0.1.23"
|
||||||
errno = { version = "*", default-features = false }
|
errno = { version = "*", default-features = false }
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
|
|
|
@ -7,6 +7,7 @@ pub(crate) struct Timespec {
|
||||||
pub(crate) ts: timespec,
|
pub(crate) ts: timespec,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
pub(crate) fn new_timespec() -> Timespec {
|
pub(crate) fn new_timespec() -> Timespec {
|
||||||
Timespec {
|
Timespec {
|
||||||
ts: timespec {
|
ts: timespec {
|
||||||
|
@ -15,6 +16,7 @@ pub(crate) fn new_timespec() -> Timespec {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Sub<Timespec> for Timespec {
|
impl Sub<Timespec> for Timespec {
|
||||||
type Output = Duration;
|
type Output = Duration;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue