projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start doing the course-part of BigInt
[rust-101.git]
/
workspace
/
src
/
main.rs
diff --git
a/workspace/src/main.rs
b/workspace/src/main.rs
index 0b81cddfb83754a86cb18759096c7a105d651f22..bcf87855eb1b0d31d44d723bb9857e1f961eb1c0 100644
(file)
--- a/
workspace/src/main.rs
+++ b/
workspace/src/main.rs
@@
-2,6
+2,8
@@
mod part00;
mod part01;
mod part02;
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();
}
fn main() {
part00::part_main();
}