modes:single|pair: Use square brackets instead of braces for display
Helps distinguish from the Debug print.
This commit is contained in:
@@ -55,7 +55,7 @@ use std::fmt::{Display, Formatter, Result};
|
|||||||
|
|
||||||
impl Display for Pair {
|
impl Display for Pair {
|
||||||
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
|
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
|
||||||
write!(f, "Pair({}, {})", self.0, self.1)
|
write!(f, "Pair[{}, {}]", self.0, self.1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ impl Hand for Single {
|
|||||||
use std::fmt::{Display, Formatter, Result};
|
use std::fmt::{Display, Formatter, Result};
|
||||||
impl Display for Single {
|
impl Display for Single {
|
||||||
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
|
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
|
||||||
write!(f, "Single({})", self.0)
|
write!(f, "Single[{}]", self.0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user