tweak workspace
authorRalf Jung <post@ralfj.de>
Wed, 10 Jun 2015 14:20:20 +0000 (16:20 +0200)
committerRalf Jung <post@ralfj.de>
Wed, 10 Jun 2015 14:20:20 +0000 (16:20 +0200)
workspace/src/main.rs
workspace/src/part03.rs [new file with mode: 0644]

index 0b81cddfb83754a86cb18759096c7a105d651f22..bcf87855eb1b0d31d44d723bb9857e1f961eb1c0 100644 (file)
@@ -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 (file)
index 0000000..8d1c8b6
--- /dev/null
@@ -0,0 +1 @@