diff --git a/config.json b/config.json index 81652eeb5..edf247b11 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,6 @@ { "slug": "rust", "language": "Rust", - "ignore_pattern": "example|description.md|metadata.yml", "repository": "https://github.com/exercism/xrust", "active": true, "exercises": [ diff --git a/exercises/luhn-from/description.md b/exercises/luhn-from/description.md deleted file mode 100644 index 1bf1850e5..000000000 --- a/exercises/luhn-from/description.md +++ /dev/null @@ -1,9 +0,0 @@ -# Luhn: Using the From Trait - -Before doing this exercise you should probably do the original Luhn exercise. If you have not completed Luhn, you can get it by running the command: - -> `exercism fetch rust luhn` - -In the original Luhn exercise you only validated strings, but the Luhn algorithm can be applied to integers as well. - -In this exercise you'll implement the [From trait](https://doc.rust-lang.org/std/convert/trait.From.html) to convert strings, strs and unsigned integers into a Struct that performs the validation. diff --git a/exercises/luhn-from/metadata.yml b/exercises/luhn-from/metadata.yml deleted file mode 100644 index bc1e12911..000000000 --- a/exercises/luhn-from/metadata.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -blurb: "Luhn: Using the From Trait" -source: "The Rust track maintainers, based on the original Luhn exercise" diff --git a/exercises/luhn-trait/description.md b/exercises/luhn-trait/description.md deleted file mode 100644 index fd9ce2b3c..000000000 --- a/exercises/luhn-trait/description.md +++ /dev/null @@ -1,17 +0,0 @@ -# Luhn: Using a Custom Trait - -Before doing this exercise you should probably do the original Luhn exercise and its successor, "Luhn: Using the From Trait" - -To get the original Luhn exercise, run `exercism fetch rust luhn` - -To get the "Luhn: Using the From Trait" exercise, run `exercism fetch rust luhn-from` - -In the original Luhn exercise you only validated strings, but the Luhn algorithm can be applied to integers as well. - -In "Luhn: Using the From Trait" you implemented a From trait, which also required you to create a Luhn struct. - -Instead of creating a Struct just to perform the validation, what if you you validated the primitives (i.e, String, u8, etc.) themselves? - -In this exercise you'll create and implement a custom [trait](https://doc.rust-lang.org/book/traits.html) that performs the validation. - -Note: It is [not idiomatic Rust to implement traits on on primitives](https://doc.rust-lang.org/book/traits.html#rules-for-implementing-traits). In this exercise we're showing something that you _can_ do, not something you _should_ do. If you find yourself implementing traits on primitives, perhaps you have a case of [Primitive Obsession](http://wiki.c2.com/?PrimitiveObsession). diff --git a/exercises/luhn-trait/metadata.yml b/exercises/luhn-trait/metadata.yml deleted file mode 100644 index dfa0c3b26..000000000 --- a/exercises/luhn-trait/metadata.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -blurb: "Luhn: Using a Custom Trait" -source: "The Rust track maintainters, based on the original Luhn exercise"