From 02481656966b0a8dfc95cf3c22bcc049660ff7d4 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Sat, 26 Dec 2020 17:48:38 +0000 Subject: Move Rust exercises in a subdirectory --- gigasecond/src/lib.rs | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 gigasecond/src/lib.rs (limited to 'gigasecond/src') diff --git a/gigasecond/src/lib.rs b/gigasecond/src/lib.rs deleted file mode 100644 index 0abd90b..0000000 --- a/gigasecond/src/lib.rs +++ /dev/null @@ -1,7 +0,0 @@ -use chrono::{DateTime, Duration, Utc}; - -// Returns a Utc DateTime one billion seconds after start. -pub fn after(start: DateTime) -> DateTime { - let gigasecond = Duration::seconds(1_000_000_000); - start + gigasecond -} -- cgit v1.2.3