cashmere

cashmere

do not use nested pattern matching

Preface

Do not use nested pattern matching in Rust. It will get chaotic really fast. Especially when you work with Option and Result types. Wrap it into a small fn to handle it better.

Example


References