Clean up BitBoard's bit ops impl macros
Declare the `forward_ref` crate as a dependency (my first external dependency!) and use it to clean up the infix, assign, and unary op impls. This crate automatically implements A+&B, &A+B, and &A+&B for me.
This commit is contained in:
parent
2480ef25e9
commit
14ab669763
2 changed files with 14 additions and 29 deletions
|
@ -7,3 +7,4 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
chessfriend_core = { path = "../core" }
|
||||
forward_ref = "1.0.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue