Need review on my `remove()` implementation for singly linked lists

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. data-structures-in-rust

    Here's the who code and it compiles. https://github.com/UtkarshVerma/data-structures-in-rust/blob/main/src/singly_linked_list.rs

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. too-many-lists

    Learn Rust by writing Entirely Too Many linked lists

    I started learning Rust and like how the compiler is fussy about things. My plan was to implement the data structures I knew, but I got stuck at the singly linked list's remove() method. I've read the book as well, but I have no clue how to simplify this further:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Making Minecraft Spherical

    1 project | news.ycombinator.com | 1 Sep 2025
  • Protect Your Database from Cursor

    1 project | news.ycombinator.com | 1 Sep 2025
  • Show HN: Codefmt – a fast Markdown code block formatter

    1 project | news.ycombinator.com | 1 Sep 2025
  • 🎨 HyDE 2025 Update: The Most Aesthetic, Dynamic, and Minimal Hyprland Experience

    4 projects | dev.to | 1 Sep 2025
  • Show HN: Ultra-fast, Redis-compatible sever for Feox DB in Rust

    2 projects | news.ycombinator.com | 1 Sep 2025