From 45c3761fd9ffe290abaec0ac301a61fb2d03a13f Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Mon, 22 Jul 2024 02:12:04 +0900 Subject: [PATCH] =?UTF-8?q?libc=20up=20/=20=EC=95=88=EC=93=B0=EB=8A=94?= =?UTF-8?q?=EB=B6=80=EB=B6=84=20=EC=A0=95=EB=A6=AC.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 2 +- src/tm.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c177c22..80f0d4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] libc = { version = "0.2", default-features = false } -libc-print = "0.1.22" +libc-print = "0.1.23" errno = { version = "*", default-features = false } [profile.dev] diff --git a/src/tm.rs b/src/tm.rs index 4641dab..efabf77 100644 --- a/src/tm.rs +++ b/src/tm.rs @@ -7,6 +7,7 @@ pub(crate) struct Timespec { pub(crate) ts: timespec, } +#[cfg(test)] pub(crate) fn new_timespec() -> Timespec { Timespec { ts: timespec { @@ -15,6 +16,7 @@ pub(crate) fn new_timespec() -> Timespec { }, } } + impl Sub for Timespec { type Output = Duration;