projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*oops*
[rust-101.git]
/
workspace
/
src
/
main.rs
diff --git
a/workspace/src/main.rs
b/workspace/src/main.rs
index 272258985cb469e3c343d4144a8d18a5a9fb98c9..09954a08726b580b5acc7d935d7d972c60f81841 100644
(file)
--- a/
workspace/src/main.rs
+++ b/
workspace/src/main.rs
@@
-1,10
+1,17
@@
+#![allow(dead_code, unused_imports, unused_variables, unused_mut)]
+
+// Only the files imported here will be compiled.
mod part00;
mod part01;
mod part02;
mod part03;
mod part00;
mod part01;
mod part02;
mod part03;
+mod part04;
+mod part05;
+mod part06;
+mod part07;
+mod part08;
-#[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. */
+// This decides which part is actually run.
fn main() {
part00::main();
}
fn main() {
part00::main();
}