Kivanc Gunalp 4e9b5735ad Use more idiomatic Rust in file_io2/file_io3
- file_io2: replace the manual line_number counter with
  .lines().enumerate(), and replace
  buffered_file_writer.write(format!(...).as_bytes()) with writeln!,
  which both formats and guarantees a complete write (write_fmt loops
  internally, unlike a single Write::write call).
- file_io3: replace the manual match on file_path.parent() with
  .ok_or_else(...)? for a more idiomatic Option-to-Result conversion.

Verified locally: both solutions compile under edition 2024, clippy is
silent, and running them still produces identical output (3 lines
processed / 117-byte file, non-readonly permissions) with no leftover
files.
2026-07-26 15:48:35 +00:00
2025-05-16 11:09:06 +02:00
2026-06-23 12:31:03 +02:00
2026-05-11 12:09:01 +02:00
2026-04-07 00:15:33 +02:00
2025-05-16 11:29:32 +02:00
2026-03-30 17:34:13 +02:00
2024-09-13 15:07:53 +02:00
2025-01-01 22:07:41 +01:00
2026-05-11 12:09:01 +02:00
2026-04-06 16:58:15 +02:00
2025-08-18 12:01:21 +02:00
2026-03-30 17:34:13 +02:00
2024-04-25 19:58:55 +02:00
2016-03-27 15:57:49 -04:00

Rustlings 🦀

Small exercises to get you used to reading and writing Rust code - Recommended in parallel to reading the official Rust book 📚

Visit the website for a demo, info about setup and more:

➡️ rustlings.rust-lang.org ⬅️

Description
🦀 Small exercises to get you used to reading and writing Rust code!
Readme MIT 39 MiB
Languages
Rust 97.7%
HTML 1.9%
CSS 0.3%