diff --git a/README.md b/README.md index c49cd6e..c3b708f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # The Rust Programming Language -Book to get started with the Rust programming language. +My notes about the book to get started with the Rust programming language. Available online: @@ -14,7 +14,7 @@ Rust keeps track of who can read and write to memory. It knows when the program - [Website](https://www.rust-lang.org/) - Local Documentation: `rustup doc` -- Rust version used: v1.75.0 (`rustc --version`) +- Rust version used: v1.87.0 (`rustc --version`) ## Summary diff --git a/chapter_10_generics_traits_lifetimes/Cargo.lock b/chapter_10_generics_traits_lifetimes/Cargo.lock index 8ef56cb..96b4eec 100644 --- a/chapter_10_generics_traits_lifetimes/Cargo.lock +++ b/chapter_10_generics_traits_lifetimes/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "chapter_10_generics_traits_lifetimes" diff --git a/chapter_10_generics_traits_lifetimes/Cargo.toml b/chapter_10_generics_traits_lifetimes/Cargo.toml index 325acc8..48c162e 100644 --- a/chapter_10_generics_traits_lifetimes/Cargo.toml +++ b/chapter_10_generics_traits_lifetimes/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chapter_10_generics_traits_lifetimes" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] diff --git a/chapter_11_testing/Cargo.lock b/chapter_11_testing/Cargo.lock index 3518fcf..35b713f 100644 --- a/chapter_11_testing/Cargo.lock +++ b/chapter_11_testing/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "aho-corasick" @@ -19,13 +19,14 @@ checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87" [[package]] name = "assert_cmd" -version = "2.0.12" +version = "2.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88903cb14723e4d4003335bb7f8a14f27691649105346a0f0957466c096adfe6" +checksum = "2bd389a4b2970a01282ee455294913c0a43724daedcd1a24c3eb0ec1c1320b66" dependencies = [ "anstyle", "bstr", "doc-comment", + "libc", "predicates", "predicates-core", "predicates-tree", @@ -69,30 +70,15 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" -[[package]] -name = "either" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" - [[package]] name = "float-cmp" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" +checksum = "b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8" dependencies = [ "num-traits", ] -[[package]] -name = "itertools" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" -dependencies = [ - "either", -] - [[package]] name = "libc" version = "0.2.150" @@ -122,14 +108,13 @@ dependencies = [ [[package]] name = "predicates" -version = "3.0.4" +version = "3.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dfc28575c2e3f19cb3c73b93af36460ae898d426eba6fc15b9bd2a5220758a0" +checksum = "a5d19ee57562043d37e82899fade9a22ebab7be9cef5026b07fda9cdd4293573" dependencies = [ "anstyle", "difflib", "float-cmp", - "itertools", "normalize-line-endings", "predicates-core", "regex", diff --git a/chapter_11_testing/Cargo.toml b/chapter_11_testing/Cargo.toml index ea8149b..c3ed20f 100644 --- a/chapter_11_testing/Cargo.toml +++ b/chapter_11_testing/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "chapter_11_testing" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] [dev-dependencies] -assert_cmd = "2.0.12" -predicates = "3.0.4" +assert_cmd = "2.0.17" +predicates = "3.1.3" diff --git a/chapter_12_minigrep/Cargo.lock b/chapter_12_minigrep/Cargo.lock index 4c6474d..1d93d40 100644 --- a/chapter_12_minigrep/Cargo.lock +++ b/chapter_12_minigrep/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "anstyle" @@ -10,25 +10,20 @@ checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87" [[package]] name = "assert_cmd" -version = "2.0.12" +version = "2.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88903cb14723e4d4003335bb7f8a14f27691649105346a0f0957466c096adfe6" +checksum = "2bd389a4b2970a01282ee455294913c0a43724daedcd1a24c3eb0ec1c1320b66" dependencies = [ "anstyle", "bstr", "doc-comment", + "libc", "predicates", "predicates-core", "predicates-tree", "wait-timeout", ] -[[package]] -name = "bitflags" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" - [[package]] name = "bstr" version = "1.8.0" @@ -50,12 +45,10 @@ dependencies = [ [[package]] name = "colored" -version = "2.0.4" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2674ec482fbc38012cf31e6c42ba0177b431a0cb6f15fe40efa5aab1bda516f6" +checksum = "fde0e0ec90c9dfb3b4b1a0891a7dcd0e2bffde2f7efed5fe7c9bb00e5bfb915e" dependencies = [ - "is-terminal", - "lazy_static", "windows-sys", ] @@ -77,33 +70,6 @@ version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" -[[package]] -name = "errno" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f258a7194e7f7c2a7837a8913aeab7fd8c383457034fa20ce4dd3dcb813e8eb8" -dependencies = [ - "libc", - "windows-sys", -] - -[[package]] -name = "hermit-abi" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" - -[[package]] -name = "is-terminal" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" -dependencies = [ - "hermit-abi", - "rustix", - "windows-sys", -] - [[package]] name = "itertools" version = "0.11.0" @@ -113,24 +79,12 @@ dependencies = [ "either", ] -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - [[package]] name = "libc" version = "0.2.150" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" -[[package]] -name = "linux-raw-sys" -version = "0.4.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829" - [[package]] name = "memchr" version = "2.6.4" @@ -189,19 +143,6 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" -[[package]] -name = "rustix" -version = "0.38.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc99bc2d4f1fed22595588a013687477aedf3cdcfb26558c559edb67b4d9b22e" -dependencies = [ - "bitflags", - "errno", - "libc", - "linux-raw-sys", - "windows-sys", -] - [[package]] name = "serde" version = "1.0.192" diff --git a/chapter_12_minigrep/Cargo.toml b/chapter_12_minigrep/Cargo.toml index 7668357..a921f54 100644 --- a/chapter_12_minigrep/Cargo.toml +++ b/chapter_12_minigrep/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "chapter_12_minigrep" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] -colored = "2.0.4" +colored = "3.0.0" [dev-dependencies] -assert_cmd = "2.0.12" +assert_cmd = "2.0.17" diff --git a/chapter_13_iterators_and_closures/Cargo.lock b/chapter_13_iterators_and_closures/Cargo.lock index fbd7054..b8cc087 100644 --- a/chapter_13_iterators_and_closures/Cargo.lock +++ b/chapter_13_iterators_and_closures/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "chapter_13_iterators_and_closures" @@ -11,9 +11,9 @@ dependencies = [ [[package]] name = "heck" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "proc-macro2" @@ -41,18 +41,18 @@ checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" [[package]] name = "strum" -version = "0.25.0" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125" +checksum = "f64def088c51c9510a8579e3c5d67c65349dcf755e5479ad3d010aa6454e2c32" dependencies = [ "strum_macros", ] [[package]] name = "strum_macros" -version = "0.25.3" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0" +checksum = "c77a8c5abcaf0f9ce05d62342b7d298c346515365c36b673df4ebe3ced01fde8" dependencies = [ "heck", "proc-macro2", diff --git a/chapter_13_iterators_and_closures/Cargo.toml b/chapter_13_iterators_and_closures/Cargo.toml index 6f59bac..7a9ba12 100644 --- a/chapter_13_iterators_and_closures/Cargo.toml +++ b/chapter_13_iterators_and_closures/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "chapter_13_iterators_and_closures" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] -strum = { version = "0.25", features = ["derive"] } +strum = { version = "0.27.1", features = ["derive"] } diff --git a/chapter_14_cargo_and_crates/README.md b/chapter_14_cargo_and_crates/README.md index aefe88a..f63e66a 100644 --- a/chapter_14_cargo_and_crates/README.md +++ b/chapter_14_cargo_and_crates/README.md @@ -34,7 +34,7 @@ We don't necessarily need all of these sections, but this is a checklist to remi For example, documenting a `add_one` function in a crate named `my_crate`: -```rs +````rs /// Adds one to the number given. /// /// # Examples @@ -48,7 +48,7 @@ For example, documenting a `add_one` function in a crate named `my_crate`: pub fn add_one(x: i32) -> i32 { x + 1 } -``` +```` We can generate the documentation with `cargo doc` and open the generated documentation with `cargo doc --open`. @@ -85,7 +85,7 @@ For example, the `Cargo.toml` file for the `guessing_game` crate: [package] name = "guessing_game" version = "1.0.0" -edition = "2021" +edition = "2024" description = "A fun game where you guess what number the computer has chosen." license = "MIT" diff --git a/chapter_1_getting_started/Cargo.lock b/chapter_1_getting_started/Cargo.lock index 45b5bfd..9e26726 100644 --- a/chapter_1_getting_started/Cargo.lock +++ b/chapter_1_getting_started/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "chapter_1_getting_started" diff --git a/chapter_1_getting_started/Cargo.toml b/chapter_1_getting_started/Cargo.toml index 76b29d2..199f7cc 100644 --- a/chapter_1_getting_started/Cargo.toml +++ b/chapter_1_getting_started/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chapter_1_getting_started" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] diff --git a/chapter_2_guessing_game/Cargo.lock b/chapter_2_guessing_game/Cargo.lock index daa2f9b..3a143af 100644 --- a/chapter_2_guessing_game/Cargo.lock +++ b/chapter_2_guessing_game/Cargo.lock @@ -1,6 +1,12 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 + +[[package]] +name = "bitflags" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967" [[package]] name = "cfg-if" @@ -17,20 +23,21 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.11" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" +checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" dependencies = [ "cfg-if", "libc", + "r-efi", "wasi", ] [[package]] name = "libc" -version = "0.2.150" +version = "0.2.172" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" +checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" [[package]] name = "ppv-lite86" @@ -39,21 +46,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] -name = "rand" -version = "0.8.5" +name = "r-efi" +version = "5.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" + +[[package]] +name = "rand" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" dependencies = [ - "libc", "rand_chacha", "rand_core", ] [[package]] name = "rand_chacha" -version = "0.3.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" dependencies = [ "ppv-lite86", "rand_core", @@ -61,15 +73,27 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.6.4" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" dependencies = [ "getrandom", ] [[package]] name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" +version = "0.14.2+wasi-0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" +dependencies = [ + "wit-bindgen-rt", +] + +[[package]] +name = "wit-bindgen-rt" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" +dependencies = [ + "bitflags", +] diff --git a/chapter_2_guessing_game/Cargo.toml b/chapter_2_guessing_game/Cargo.toml index 4e7b6c4..9d49695 100644 --- a/chapter_2_guessing_game/Cargo.toml +++ b/chapter_2_guessing_game/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "chapter_2_guessing_game" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] -rand = "0.8.5" +rand = "0.9.1" diff --git a/chapter_2_guessing_game/src/main.rs b/chapter_2_guessing_game/src/main.rs index 1ca3f08..c6eb1d0 100644 --- a/chapter_2_guessing_game/src/main.rs +++ b/chapter_2_guessing_game/src/main.rs @@ -4,7 +4,7 @@ use std::io; fn main() { println!("Guess the number!"); - let secret_number = rand::thread_rng().gen_range(1..=100); + let secret_number = rand::rng().random_range(1..=100); let mut number_of_try = 0; loop { number_of_try += 1; diff --git a/chapter_3_common_concepts/Cargo.lock b/chapter_3_common_concepts/Cargo.lock index 713343d..4c291fb 100644 --- a/chapter_3_common_concepts/Cargo.lock +++ b/chapter_3_common_concepts/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "chapter_3_common_concepts" diff --git a/chapter_3_common_concepts/Cargo.toml b/chapter_3_common_concepts/Cargo.toml index a132857..e04d240 100644 --- a/chapter_3_common_concepts/Cargo.toml +++ b/chapter_3_common_concepts/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chapter_3_common_concepts" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] diff --git a/chapter_4_ownership/Cargo.lock b/chapter_4_ownership/Cargo.lock index 2e4aa05..c16c1c0 100644 --- a/chapter_4_ownership/Cargo.lock +++ b/chapter_4_ownership/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "chapter_4_ownership" diff --git a/chapter_4_ownership/Cargo.toml b/chapter_4_ownership/Cargo.toml index 3c0d1df..85f4be7 100644 --- a/chapter_4_ownership/Cargo.toml +++ b/chapter_4_ownership/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chapter_4_ownership" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] diff --git a/chapter_5_structs/Cargo.lock b/chapter_5_structs/Cargo.lock index f27135c..2cd116a 100644 --- a/chapter_5_structs/Cargo.lock +++ b/chapter_5_structs/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "chapter_5_structs" diff --git a/chapter_5_structs/Cargo.toml b/chapter_5_structs/Cargo.toml index c4ed748..28b7e75 100644 --- a/chapter_5_structs/Cargo.toml +++ b/chapter_5_structs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chapter_5_structs" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] diff --git a/chapter_6_enums/Cargo.lock b/chapter_6_enums/Cargo.lock index 7bc264a..efbb4fc 100644 --- a/chapter_6_enums/Cargo.lock +++ b/chapter_6_enums/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "chapter_6_enums" diff --git a/chapter_6_enums/Cargo.toml b/chapter_6_enums/Cargo.toml index d8c86fd..24fd49a 100644 --- a/chapter_6_enums/Cargo.toml +++ b/chapter_6_enums/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chapter_6_enums" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] diff --git a/chapter_7_packages_crates_modules/Cargo.lock b/chapter_7_packages_crates_modules/Cargo.lock index 59191b2..fb29b81 100644 --- a/chapter_7_packages_crates_modules/Cargo.lock +++ b/chapter_7_packages_crates_modules/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "chapter_7_packages_crates_modules" diff --git a/chapter_7_packages_crates_modules/Cargo.toml b/chapter_7_packages_crates_modules/Cargo.toml index 6e2a2c0..4b0b8fa 100644 --- a/chapter_7_packages_crates_modules/Cargo.toml +++ b/chapter_7_packages_crates_modules/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chapter_7_packages_crates_modules" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] diff --git a/chapter_8_common_collections/Cargo.lock b/chapter_8_common_collections/Cargo.lock index e987fe7..783b5ac 100644 --- a/chapter_8_common_collections/Cargo.lock +++ b/chapter_8_common_collections/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "chapter_8_common_collections" diff --git a/chapter_8_common_collections/Cargo.toml b/chapter_8_common_collections/Cargo.toml index a6cb6d8..d09133c 100644 --- a/chapter_8_common_collections/Cargo.toml +++ b/chapter_8_common_collections/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chapter_8_common_collections" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies] diff --git a/chapter_9_error_handling/Cargo.lock b/chapter_9_error_handling/Cargo.lock index 00f0789..95c2f62 100644 --- a/chapter_9_error_handling/Cargo.lock +++ b/chapter_9_error_handling/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "chapter_9_error_handling" diff --git a/chapter_9_error_handling/Cargo.toml b/chapter_9_error_handling/Cargo.toml index 9850843..710fb52 100644 --- a/chapter_9_error_handling/Cargo.toml +++ b/chapter_9_error_handling/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chapter_9_error_handling" version = "1.0.0" -edition = "2021" +edition = "2024" [dependencies]