Skip to content

Commit 2e1630c

Browse files
committed
chore: style fixes
1 parent 4a60b7b commit 2e1630c

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[package]
22
name = "rustlings"
33
version = "5.2.1"
4-
authors = ["Liv <mokou@fastmail.com>", "Carol (Nichols || Goulding) <carol.nichols@gmail.com>"]
4+
authors = [
5+
"Liv <mokou@fastmail.com>",
6+
"Carol (Nichols || Goulding) <carol.nichols@gmail.com>",
7+
]
58
edition = "2021"
69

710
[dependencies]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ After every couple of sections, there will be a quiz that'll test your knowledge
126126

127127
## Enabling `rust-analyzer`
128128

129-
Run the command `rustlings lsp` which will generate a `rust-project.json` at the root of the project, this allows [rust-analyzer](https://rust-analyzer.github.io/) to parse each exercise.
129+
Run the command `rustlings lsp` which will generate a `rust-project.json` at the root of the project, this allows [rust-analyzer](https://rust-analyzer.github.io/) to parse each exercise.
130130

131131
## Continuing On
132132

info.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ path = "exercises/enums/enums3.rs"
416416
mode = "test"
417417
hint = """
418418
As a first step, you can define enums to compile this code without errors.
419-
and then create a match expression in `process()`.
420-
Note that you need to deconstruct some message variants
419+
and then create a match expression in `process()`.
420+
Note that you need to deconstruct some message variants
421421
in the match expression to get value in the variant."""
422422

423423
# STRINGS
@@ -476,7 +476,7 @@ name = "modules2"
476476
path = "exercises/modules/modules2.rs"
477477
mode = "compile"
478478
hint = """
479-
The delicious_snacks module is trying to present an external interface that is
479+
The delicious_snacks module is trying to present an external interface that is
480480
different than its internal structure (the `fruits` and `veggies` modules and
481481
associated constants). Complete the `use` statements to fit the uses in main and
482482
find the one keyword missing for both constants."""
@@ -623,12 +623,12 @@ path = "exercises/error_handling/errors5.rs"
623623
mode = "compile"
624624
hint = """
625625
There are two different possible `Result` types produced within `main()`, which are
626-
propagated using `?` operators. How do we declare a return type from `main()` that allows both?
626+
propagated using `?` operators. How do we declare a return type from `main()` that allows both?
627627
628628
Under the hood, the `?` operator calls `From::from` on the error value to convert it to a boxed
629629
trait object, a `Box<dyn error::Error>`. This boxed trait object is polymorphic, and since all
630630
errors implement the `error::Error` trait, we can capture lots of different errors in one "Box"
631-
object.
631+
object.
632632
633633
Check out this section of the book:
634634
https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html#a-shortcut-for-propagating-errors-the--operator
@@ -862,7 +862,7 @@ case is a vector of integers and the failure case is a DivisionError.
862862
863863
The list_of_results function needs to return a vector of results.
864864
865-
See https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect for how
865+
See https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect for how
866866
the `FromIterator` trait is used in `collect()`. This trait is REALLY powerful! It
867867
can make the solution to this exercise infinitely easier."""
868868

@@ -964,10 +964,10 @@ name = "threads1"
964964
path = "exercises/threads/threads1.rs"
965965
mode = "compile"
966966
hint = """
967-
`JoinHandle` is a struct that is returned from a spawned thread:
967+
`JoinHandle` is a struct that is returned from a spawned thread:
968968
https://doc.rust-lang.org/std/thread/fn.spawn.html
969969
970-
A challenge with multi-threaded applications is that the main thread can
970+
A challenge with multi-threaded applications is that the main thread can
971971
finish before the spawned threads are completed.
972972
https://doc.rust-lang.org/book/ch16-01-threads.html#waiting-for-all-threads-to-finish-using-join-handles
973973
@@ -1077,7 +1077,7 @@ mathematical constants in the rust standard library.
10771077
https://doc.rust-lang.org/stable/std/f32/consts/index.html
10781078
10791079
We may be tempted to use our own approximations for certain mathematical constants,
1080-
but clippy recognizes those imprecise mathematical constants as a source of
1080+
but clippy recognizes those imprecise mathematical constants as a source of
10811081
potential error.
10821082
See the suggestions of the clippy warning in compile output and use the
10831083
appropriate replacement constant from std::f32::consts..."""

0 commit comments

Comments
 (0)