Skip to content

Commit

Permalink
Ignore dead code warnings until visibility has been explained (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker authored Dec 18, 2024
1 parent b0e1e5a commit 468b74b
Show file tree
Hide file tree
Showing 17 changed files with 102 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises/01_intro/00_welcome/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "welcome_00"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/01_intro/01_syntax/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "syntax"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/00_intro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "intro_01"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/01_integers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "integers"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/02_variables/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "variables"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/03_if_else/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "if_else"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/04_panics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "panics"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/05_factorial/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "factorial"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/06_while/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "while_"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/07_for/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "for_"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/08_overflow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "overflow"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/09_saturating/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "saturating"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/02_basic_calculator/10_as_casting/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "as_cast"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/03_ticket_v1/00_intro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "intro_02"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/03_ticket_v1/01_struct/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "struct_"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/03_ticket_v1/02_validation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ edition = "2021"

[dev-dependencies]
common = { path = "../../../helpers/common" }

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"
6 changes: 6 additions & 0 deletions exercises/03_ticket_v1/03_modules/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
name = "modules"
version = "0.1.0"
edition = "2021"

[lints.rust]
# We silence dead code warnings for the time being in order to reduce
# compiler noise.
# We'll re-enable them again once we explain how visibility works in Rust.
dead_code = "allow"

0 comments on commit 468b74b

Please sign in to comment.