Skip to content

Commit 7094b87

Browse files
Fix cargo fmt formatting in Display impls for error types
Co-authored-by: chase-manning <53957795+chase-manning@users.noreply.github.com>
1 parent fc0ff90 commit 7094b87

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pleco/src/core/piece_move.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ pub struct BitMoveFromStrError;
211211

212212
impl fmt::Display for BitMoveFromStrError {
213213
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
214-
write!(f, "invalid move string, expected format like 'e2e4' or 'a7a8q'")
214+
write!(
215+
f,
216+
"invalid move string, expected format like 'e2e4' or 'a7a8q'"
217+
)
215218
}
216219
}
217220

pleco/src/core/sq.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ pub struct SQFromStrError;
430430

431431
impl fmt::Display for SQFromStrError {
432432
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
433-
write!(f, "invalid square string, expected format like 'a1' through 'h8'")
433+
write!(
434+
f,
435+
"invalid square string, expected format like 'a1' through 'h8'"
436+
)
434437
}
435438
}

0 commit comments

Comments
 (0)