summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authorsjmann <sjmann91@gmail.com>2020-02-28 00:19:45 +0000
committersjmann <sjmann91@gmail.com>2020-02-28 00:19:45 +0000
commit29b30ec946b8a20c3806e28813f2d19553ba52e1 (patch)
treeae8cef1a4865473b1428a5eb3c26b790b52840ef /info.toml
parent76be5e4e991160f5fd9093f03ee2ba260e8f7229 (diff)
parent8b9479071c0ac4f5dc1318358d7d7e3a19ce98e2 (diff)
Merge branch 'master' of https://github.com/sjmann/rustlings into generics-exercises
Diffstat (limited to 'info.toml')
-rw-r--r--info.toml18
1 files changed, 17 insertions, 1 deletions
diff --git a/info.toml b/info.toml
index 8c8b1a5..d0ed053 100644
--- a/info.toml
+++ b/info.toml
@@ -369,7 +369,7 @@ The way macros are written, it wants to see something between each
[[exercises]]
name = "test4"
path = "exercises/test4.rs"
-mode = "compile"
+mode = "test"
hint = "No hints this time ;)"
# MOVE SEMANTICS
@@ -529,6 +529,22 @@ hint = """
It should be doing some checking, returning an `Err` result if those checks fail, and only
returning an `Ok` result if those checks determine that everything is... okay :)"""
+# CLIPPY
+
+[[exercises]]
+name = "clippy1"
+path = "exercises/clippy/clippy1.rs"
+mode = "clippy"
+hint = """
+Floating point calculations are usually imprecise, so asking if two values are exactly equal is asking for trouble"""
+
+[[exercises]]
+name = "clippy2"
+path = "exercises/clippy/clippy2.rs"
+mode = "clippy"
+hint = """
+`for` loops over Option values are more clearly expressed as an `if let`"""
+
# STANDARD LIBRARY TYPES
[[exercises]]