Fix clippy warnings in beancount-types

Created by  korrat  on March 19, 2024
YKZNTEVOV64AWTCZSKGGSSYEEJMD2KHX4RMFQ72ORSE4SMH6GWGAC
Change contents