Skip to content

Commit 76acf61

Browse files
authored
Merge branch 'main' into main
2 parents bcb192c + 2966a29 commit 76acf61

File tree

12 files changed

+130
-56
lines changed

12 files changed

+130
-56
lines changed

.all-contributorsrc

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2559,6 +2559,87 @@
25592559
"contributions": [
25602560
"content"
25612561
]
2562+
},
2563+
{
2564+
"login": "AnonimAnonim2245",
2565+
"name": "Luca Plian",
2566+
"avatar_url": "https://avatars.githubusercontent.com/u/98339220?v=4",
2567+
"profile": "https://github.com/AnonimAnonim2245",
2568+
"contributions": [
2569+
"code"
2570+
]
2571+
},
2572+
{
2573+
"login": "reifenrath-dev",
2574+
"name": "René Reifenrath",
2575+
"avatar_url": "https://avatars.githubusercontent.com/u/18126097?v=4",
2576+
"profile": "https://reifenrath.dev/",
2577+
"contributions": [
2578+
"content"
2579+
]
2580+
},
2581+
{
2582+
"login": "peterneave",
2583+
"name": "Peter Neave",
2584+
"avatar_url": "https://avatars.githubusercontent.com/u/7982708?v=4",
2585+
"profile": "https://github.com/peterneave",
2586+
"contributions": [
2587+
"infra"
2588+
]
2589+
},
2590+
{
2591+
"login": "JanB1",
2592+
"name": "Jan",
2593+
"avatar_url": "https://avatars.githubusercontent.com/u/5552248?v=4",
2594+
"profile": "http://www.janb1.com",
2595+
"contributions": [
2596+
"content"
2597+
]
2598+
},
2599+
{
2600+
"login": "kylev",
2601+
"name": "Kyle VanderBeek",
2602+
"avatar_url": "https://avatars.githubusercontent.com/u/46888?v=4",
2603+
"profile": "http://www.kylev.com/",
2604+
"contributions": [
2605+
"infra"
2606+
]
2607+
},
2608+
{
2609+
"login": "pavedroad",
2610+
"name": "pavedroad",
2611+
"avatar_url": "https://avatars.githubusercontent.com/u/138004431?v=4",
2612+
"profile": "https://github.com/pavedroad",
2613+
"contributions": [
2614+
"content"
2615+
]
2616+
},
2617+
{
2618+
"login": "hyphena",
2619+
"name": "luna",
2620+
"avatar_url": "https://avatars.githubusercontent.com/u/26529488?v=4",
2621+
"profile": "https://github.com/hyphena",
2622+
"contributions": [
2623+
"content"
2624+
]
2625+
},
2626+
{
2627+
"login": "evanmiller2112",
2628+
"name": "Evan Miller",
2629+
"avatar_url": "https://avatars.githubusercontent.com/u/28488957?v=4",
2630+
"profile": "https://github.com/evanmiller2112",
2631+
"contributions": [
2632+
"content"
2633+
]
2634+
},
2635+
{
2636+
"login": "luvchurchill",
2637+
"name": "luvchurchill",
2638+
"avatar_url": "https://avatars.githubusercontent.com/u/46406654?v=4",
2639+
"profile": "https://github.com/luvchurchill",
2640+
"contributions": [
2641+
"code"
2642+
]
25622643
}
25632644
],
25642645
"contributorsPerLine": 8,

.devcontainer/devcontainer.json

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
{
2-
"image": "mcr.microsoft.com/devcontainers/universal:2-linux",
3-
"waitFor": "onCreateCommand",
4-
"onCreateCommand": ".devcontainer/setup.sh",
5-
"updateContentCommand": "cargo build",
6-
"postCreateCommand": "",
7-
"postAttachCommand": {
8-
"server": "rustlings watch"
9-
},
10-
"customizations": {
11-
"vscode": {
12-
"extensions": [
13-
"rust-lang.rust-analyzer"
14-
]
15-
}
2+
"image": "mcr.microsoft.com/devcontainers/rust:1",
3+
"updateContentCommand": ["cargo", "build"],
4+
"postAttachCommand": ["rustlings", "watch"],
5+
"remoteEnv": {
6+
"PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/target/debug"
167
}
178
}

.devcontainer/setup.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
*.sh text eol=lf

AUTHORS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,17 @@ authors.
362362
</tr>
363363
<tr>
364364
<td align="center" valign="top" width="12.5%"><a href="https://github.com/gerases"><img src="https://avatars.githubusercontent.com/u/8953623?v=4?s=100" width="100px;" alt="gerases"/><br /><sub><b>gerases</b></sub></a><br /><a href="#content-gerases" title="Content">🖋</a></td>
365+
<td align="center" valign="top" width="12.5%"><a href="https://github.com/AnonimAnonim2245"><img src="https://avatars.githubusercontent.com/u/98339220?v=4?s=100" width="100px;" alt="Luca Plian"/><br /><sub><b>Luca Plian</b></sub></a><br /><a href="https://github.com/rust-lang/rustlings/commits?author=AnonimAnonim2245" title="Code">💻</a></td>
366+
<td align="center" valign="top" width="12.5%"><a href="https://reifenrath.dev/"><img src="https://avatars.githubusercontent.com/u/18126097?v=4?s=100" width="100px;" alt="René Reifenrath"/><br /><sub><b>René Reifenrath</b></sub></a><br /><a href="#content-reifenrath-dev" title="Content">🖋</a></td>
367+
<td align="center" valign="top" width="12.5%"><a href="https://github.com/peterneave"><img src="https://avatars.githubusercontent.com/u/7982708?v=4?s=100" width="100px;" alt="Peter Neave"/><br /><sub><b>Peter Neave</b></sub></a><br /><a href="#infra-peterneave" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
368+
<td align="center" valign="top" width="12.5%"><a href="http://www.janb1.com"><img src="https://avatars.githubusercontent.com/u/5552248?v=4?s=100" width="100px;" alt="Jan"/><br /><sub><b>Jan</b></sub></a><br /><a href="#content-JanB1" title="Content">🖋</a></td>
369+
<td align="center" valign="top" width="12.5%"><a href="http://www.kylev.com/"><img src="https://avatars.githubusercontent.com/u/46888?v=4?s=100" width="100px;" alt="Kyle VanderBeek"/><br /><sub><b>Kyle VanderBeek</b></sub></a><br /><a href="#infra-kylev" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
370+
<td align="center" valign="top" width="12.5%"><a href="https://github.com/pavedroad"><img src="https://avatars.githubusercontent.com/u/138004431?v=4?s=100" width="100px;" alt="pavedroad"/><br /><sub><b>pavedroad</b></sub></a><br /><a href="#content-pavedroad" title="Content">🖋</a></td>
371+
<td align="center" valign="top" width="12.5%"><a href="https://github.com/hyphena"><img src="https://avatars.githubusercontent.com/u/26529488?v=4?s=100" width="100px;" alt="luna"/><br /><sub><b>luna</b></sub></a><br /><a href="#content-hyphena" title="Content">🖋</a></td>
372+
</tr>
373+
<tr>
374+
<td align="center" valign="top" width="12.5%"><a href="https://github.com/evanmiller2112"><img src="https://avatars.githubusercontent.com/u/28488957?v=4?s=100" width="100px;" alt="Evan Miller"/><br /><sub><b>Evan Miller</b></sub></a><br /><a href="#content-evanmiller2112" title="Content">🖋</a></td>
375+
<td align="center" valign="top" width="12.5%"><a href="https://github.com/luvchurchill"><img src="https://avatars.githubusercontent.com/u/46406654?v=4?s=100" width="100px;" alt="luvchurchill"/><br /><sub><b>luvchurchill</b></sub></a><br /><a href="https://github.com/rust-lang/rustlings/commits?author=luvchurchill" title="Code">💻</a></td>
365376
</tr>
366377
</tbody>
367378
</table>

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
- **structs3**: Clarifed the hint
168168
- **quiz2, as_ref_mut, options1, traits1, traits2**: Clarified hints
169169
- **traits1, traits2, cli**: Tidied up unmatching backticks
170-
- **enums2**: Removed unneccessary indirection of self
170+
- **enums2**: Removed unnecessary indirection of self
171171
- **enums3**: Added an extra tuple comment
172172

173173
#### Housekeeping

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exercises/11_hashmaps/hashmaps3.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
// the form : "<team_1_name>,<team_2_name>,<team_1_goals>,<team_2_goals>"
55
// Example: England,France,4,2 (England scored 4 goals, France 2).
66
//
7-
// You have to build a scores table containing the name of the team, goals the
8-
// team scored, and goals the team conceded. One approach to build the scores
9-
// table is to use a Hashmap. The solution is partially written to use a
10-
// Hashmap, complete it to pass the test.
7+
// You have to build a scores table containing the name of the team, the total
8+
// number of goals the team scored, and the total number of goals the team
9+
// conceded. One approach to build the scores table is to use a Hashmap.
10+
// The solution is partially written to use a Hashmap,
11+
// complete it to pass the test.
1112
//
1213
// Make me pass the tests!
1314
//

exercises/23_conversions/from_into.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ impl Default for Person {
2424
}
2525
}
2626

27-
// Your task is to complete this implementation in order for the line `let p =
27+
28+
// Your task is to complete this implementation in order for the line `let p1 =
2829
// Person::from("Mark,20")` to compile. Please note that you'll need to parse the
2930
// age component into a `usize` with something like `"4".parse::<usize>()`. The
3031
// outcome of this needs to be handled appropriately.
@@ -43,8 +44,7 @@ impl Default for Person {
4344
// I AM NOT DONE
4445

4546
impl From<&str> for Person {
46-
fn from(s: &str) -> Person {
47-
}
47+
fn from(s: &str) -> Person {}
4848
}
4949

5050
fn main() {
@@ -127,14 +127,14 @@ mod tests {
127127
#[test]
128128
fn test_trailing_comma() {
129129
let p: Person = Person::from("Mike,32,");
130-
assert_eq!(p.name, "Mike");
131-
assert_eq!(p.age, 32);
130+
assert_eq!(p.name, "John");
131+
assert_eq!(p.age, 30);
132132
}
133133

134134
#[test]
135135
fn test_trailing_comma_and_some_string() {
136-
let p: Person = Person::from("Mike,32,man");
137-
assert_eq!(p.name, "Mike");
138-
assert_eq!(p.age, 32);
136+
let p: Person = Person::from("Mike,32,dog");
137+
assert_eq!(p.name, "John");
138+
assert_eq!(p.age, 30);
139139
}
140140
}

info.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ after the `->`. This is where the function's return type should be -- take a
145145
look at the `is_even` function for an example!
146146
147147
Also: Did you figure out that, technically, `u32` would be the more fitting type
148-
for the prices here, since they can't be negative? If so, kudos!"""
148+
for the inputs of the functions here, since the original prices shouldn't be negative? If so, kudos!"""
149149

150150
[[exercises]]
151151
name = "functions5"
@@ -248,7 +248,7 @@ starting and ending (plus one) indices of the items in the `Array` that you
248248
want to end up in the slice.
249249
250250
If you're curious why the first argument of `assert_eq!` does not have an
251-
ampersand for a reference since the second argument is areference, take a look
251+
ampersand for a reference since the second argument is a reference, take a look
252252
at the coercion chapter of the nomicon:
253253
https://doc.rust-lang.org/nomicon/coercions.html"""
254254

0 commit comments

Comments
 (0)