Compare commits

..

No commits in common. "0b3ad9141bc6a04d5216f8dec0163f92bcee4804" and "ce3dcc98560a7555386556ba13d5e901bb27e2ed" have entirely different histories.

4 changed files with 2 additions and 33 deletions

View file

@ -69,18 +69,6 @@ panic = "abort"
[package.metadata.release]
pre-release-hook = ["./release-hook.sh"]
[workspace.lints.rust]
unsafe_code = "forbid"
unstable_features = "forbid"
[workspace.lints.clippy]
empty_loop = "forbid"
infinite_loop = "deny"
mem_forget = "deny"
dbg_macro = "warn"
todo = "warn"
# TODO: Remove after the following fix is released: https://github.com/rust-lang/rust-clippy/pull/13102
[lints.clippy]
needless_option_as_deref = "allow"
[lints]
workspace = true

View file

@ -201,19 +201,3 @@ panic = "abort"
[profile.dev]
panic = "abort"
[lints.rust]
# You shouldn't write unsafe code in Rustlings
unsafe_code = "forbid"
# You don't need unstable features in Rustlings and shouldn't rely on them while learning Rust
unstable_features = "forbid"
[lints.clippy]
# You forgot a `todo!()`
todo = "forbid"
# This can only happen by mistake in Rustlings
empty_loop = "forbid"
# No infinite loops are needed in Rustlings
infinite_loop = "deny"
# You shouldn't leak memory while still learning Rust
mem_forget = "deny"

View file

@ -19,6 +19,3 @@ proc-macro = true
quote = "1.0.36"
serde.workspace = true
toml_edit.workspace = true
[lints]
workspace = true

View file

@ -35,7 +35,7 @@ fn build_scores_table(results: &str) -> HashMap<&str, TeamScores> {
team_1.goals_scored += team_1_score;
team_1.goals_conceded += team_2_score;
// Similarly for the second team.
// Similarely for the second team.
let team_2 = scores
.entry(team_2_name)
.or_insert_with(TeamScores::default);