aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-14 15:57:15 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-11-14 15:57:18 +0200
commit68d78670b655f763d5dcea7cce221f390155d889 (patch)
tree6e03b5247d2d1d4c431a5ce55b0aeef73b51c0f4
parent7331909e7767509b27877d99adff1de44b41f8fb (diff)
downloadfrotate.rs-68d78670b655f763d5dcea7cce221f390155d889.tar.gz
Rename the module
So that Cargo does not think there is a library, and does not run tests twice (for the library and for the executable).
-rw-r--r--src/main.rs4
-rw-r--r--src/partition.rs (renamed from src/lib.rs)0
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 781018f..d6e6b85 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,8 +9,8 @@ use docopt::Docopt;
use serde::Deserialize;
use std::collections::LinkedList;
-mod lib;
-use lib::partition_days;
+mod partition;
+use partition::partition_days;
const USAGE: &'static str = "
Usage: frotate [-k|-d] [-b <base>] <day>...
diff --git a/src/lib.rs b/src/partition.rs
index 10b4ab9..10b4ab9 100644
--- a/src/lib.rs
+++ b/src/partition.rs