X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/c3cbdbbd2fff81d2509b22d614343e6ca0250c09..edd5ba62ecc488ff6865b970f2020763e414c5fe:/workspace/src/main.rs diff --git a/workspace/src/main.rs b/workspace/src/main.rs index 0b81cdd..771cd19 100644 --- a/workspace/src/main.rs +++ b/workspace/src/main.rs @@ -1,7 +1,10 @@ mod part00; mod part01; mod part02; +mod part04; +#[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(); + part00::main(); }