]> git.lizzy.rs Git - rust.git/commit
Replace match expression with match! macro
authorYacin Tmimi <ytmimi@horizonmedia.com>
Tue, 19 Oct 2021 00:48:58 +0000 (20:48 -0400)
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>
Tue, 19 Oct 2021 02:32:52 +0000 (21:32 -0500)
commit1ae5c35f8d2a0d2ce5d914a479839dc0f3eb70f9
tree448861c9d0f5c2142835eaf7e49971567272b6b1
parent5f4811ed7bc600e0cbe40c962e8933adb9baaddf
Replace match expression with match! macro

This is a follow up to 5f4811ed7bc600e0cbe40c962e8933adb9baaddf

The matches! macro expresses the condition more succinctly and avoids
the extra level of indentation introduced with the match arm body.
src/lists.rs