[board] Implement Default for move::move_formatter::Style

This commit is contained in:
Eryn Wells 2024-01-17 08:47:06 -08:00
parent 71e93925b9
commit e2f8faad3d

View file

@ -228,6 +228,12 @@ mod move_formatter {
Long, Long,
} }
impl Default for Style {
fn default() -> Self {
Style::Long
}
}
pub(crate) struct AlgebraicMoveFormatter<'m, 'pos> { pub(crate) struct AlgebraicMoveFormatter<'m, 'pos> {
position: &'pos Position, position: &'pos Position,
r#move: &'m Move, r#move: &'m Move,
@ -242,7 +248,7 @@ mod move_formatter {
AlgebraicMoveFormatter { AlgebraicMoveFormatter {
position, position,
r#move: mv, r#move: mv,
style: Style::Short, style: Style::default(),
} }
} }