X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/c3cbdbbd2fff81d2509b22d614343e6ca0250c09..09a36e34a7b4f163c25fb971771bc4c7edd63e2b:/workspace/src/main.rs?ds=sidebyside 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(); }