summaryrefslogtreecommitdiff
path: root/my_crate/src/main.rs
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2020-09-09 21:36:11 +0800
committerJordan Gong <jordan.gong@protonmail.com>2020-09-09 21:36:11 +0800
commit0caa5fb8e4e084248e6c4e7d3314854eb7bc4e7f (patch)
treeed8e283258b2cf219acd226cc9525237625c25d4 /my_crate/src/main.rs
parent003e092786221abaef21e197a810f40b1cc9b57f (diff)
Publish my crate
Diffstat (limited to 'my_crate/src/main.rs')
-rw-r--r--my_crate/src/main.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/my_crate/src/main.rs b/my_crate/src/main.rs
new file mode 100644
index 0000000..f7a50d3
--- /dev/null
+++ b/my_crate/src/main.rs
@@ -0,0 +1,8 @@
+use my_crate::PrimaryColor;
+use my_crate::mix;
+
+fn main() {
+ let red = PrimaryColor::Red;
+ let yellow = PrimaryColor::Yellow;
+ mix(red, yellow);
+}