mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-25 21:58:26 +01:00
Ignore dead code warnings until visibility has been explained (#232)
This commit is contained in:
parent
b0e1e5a1ec
commit
468b74ba4d
17 changed files with 102 additions and 0 deletions
|
@ -2,3 +2,9 @@
|
||||||
name = "welcome_00"
|
name = "welcome_00"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
|
@ -2,3 +2,9 @@
|
||||||
name = "syntax"
|
name = "syntax"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "intro_01"
|
name = "intro_01"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "integers"
|
name = "integers"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "variables"
|
name = "variables"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "if_else"
|
name = "if_else"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "panics"
|
name = "panics"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "factorial"
|
name = "factorial"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "while_"
|
name = "while_"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "for_"
|
name = "for_"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "overflow"
|
name = "overflow"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "saturating"
|
name = "saturating"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "as_cast"
|
name = "as_cast"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "intro_02"
|
name = "intro_02"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "struct_"
|
name = "struct_"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
|
@ -5,3 +5,9 @@ edition = "2021"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
common = { path = "../../../helpers/common" }
|
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"
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
name = "modules"
|
name = "modules"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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"
|
||||||
|
|
Loading…
Reference in a new issue