From 943c00ca03ddc76177b4a16e19e8b831247e03f8 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 10 Jun 2015 16:20:20 +0200 Subject: [PATCH 1/1] tweak workspace --- workspace/src/main.rs | 2 ++ workspace/src/part03.rs | 1 + 2 files changed, 3 insertions(+) create mode 100644 workspace/src/part03.rs diff --git a/workspace/src/main.rs b/workspace/src/main.rs index 0b81cdd..bcf8785 100644 --- a/workspace/src/main.rs +++ b/workspace/src/main.rs @@ -2,6 +2,8 @@ mod part00; mod part01; mod part02; +#[cfg(not(test))] /* If you get warnings about functions not being used on "crate test", adding this attribute will fix them. + It says that the function is only to be compiled if we are *not* compiling for tests. */ fn main() { part00::part_main(); } diff --git a/workspace/src/part03.rs b/workspace/src/part03.rs new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/workspace/src/part03.rs @@ -0,0 +1 @@ + -- 2.30.2