projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
explain how to get a workspace
[rust-101.git]
/
workspace
/
src
/
main.rs
diff --git
a/workspace/src/main.rs
b/workspace/src/main.rs
index bcf87855eb1b0d31d44d723bb9857e1f961eb1c0..2db78196815ec87c61e775a8babd05349ef93f9c 100644
(file)
--- a/
workspace/src/main.rs
+++ b/
workspace/src/main.rs
@@
-1,9
+1,13
@@
+#![allow(dead_code, unused_imports, unused_variables, unused_mut)]
+
+// Only the files imported here will be compiled. Remember to add or enable new
+// parts here as you progress through the course.
mod part00;
mod part00;
-mod part01;
-mod part02;
+// mod part01;
+// mod part02;
+// mod part03;
-#[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() {
fn main() {
- part00::
part_
main();
+ part00::main();
}
}