[board] Implement Default for move::move_formatter::Style
This commit is contained in:
parent
71e93925b9
commit
e2f8faad3d
1 changed files with 7 additions and 1 deletions
|
@ -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(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue